to squash: rename datomish-parser to datomish-query-parser

This commit is contained in:
Brian Grinstead 2016-12-16 18:23:14 -08:00
parent a5fa08e748
commit bcf2c46392
6 changed files with 11 additions and 11 deletions

View file

@ -2,5 +2,5 @@ language: rust
script:
- cargo build --verbose
- cargo test --verbose
- cargo test --verbose -p datomish-parser
- cargo test --verbose -p datomish-query-parser
- cargo test --verbose -p datomish-cli

View file

@ -4,8 +4,8 @@ version = "0.4.0"
authors = ["Richard Newman <rnewman@twinql.com>", "Nicholas Alexander <nalexander@mozilla.com>"]
[dependencies]
[dependencies.datomish-parser]
path = "parser"
[dependencies.datomish-query-parser]
path = "query-parser"
[dev-dependencies]
[dev-dependencies.datomish-cli]

View file

@ -1,3 +0,0 @@
[package]
name = "datomish-parser"
version = "0.0.1"

3
query-parser/Cargo.toml Normal file
View file

@ -0,0 +1,3 @@
[package]
name = "datomish-query-parser"
version = "0.0.1"

View file

@ -10,7 +10,7 @@
// This file is just a stub
pub fn get_name() -> String {
return String::from("datomish-parser");
return String::from("datomish-query-parser");
}
#[cfg(test)]
@ -19,6 +19,6 @@ mod tests {
#[test]
fn it_works() {
assert_eq!(String::from("datomish-parser"), get_name());
assert_eq!(String::from("datomish-query-parser"), get_name());
}
}

View file

@ -8,7 +8,7 @@
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
extern crate datomish_parser;
extern crate datomish_query_parser;
pub fn get_name() -> String {
return String::from("datomish");
@ -16,7 +16,7 @@ pub fn get_name() -> String {
// Just an example of using a dependency
pub fn get_parser_name() -> String {
return datomish_parser::get_name();
return datomish_query_parser::get_name();
}
pub fn add_two(a: i32) -> i32 {
@ -34,6 +34,6 @@ mod tests {
#[test]
fn can_import_parser() {
assert_eq!(String::from("datomish-parser"), get_parser_name());
assert_eq!(String::from("datomish-query-parser"), get_parser_name());
}
}