antetype 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/antetype.gemspec +3 -1
- data/bin/antetype +5 -0
- data/lib/antetype.rb +2 -1
- data/lib/antetype/base.rb +10 -0
- data/lib/antetype/version.rb +1 -1
- metadata +20 -15
- data/.gitignore +0 -4
- data/features/check_constants_cn.feature +0 -13
- data/features/check_constants_en.feature +0 -15
- data/features/step_definitions/check_constants_steps.rb +0 -53
- data/features/support/env.rb +0 -2
data/antetype.gemspec
CHANGED
@@ -15,8 +15,10 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
+
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.executables = 'antetype'
|
19
20
|
s.require_paths = ["lib"]
|
20
21
|
|
21
22
|
s.add_development_dependency 'rspec', '~> 2.6.0'
|
23
|
+
s.add_dependency 'thor', '~> 0.14.6'
|
22
24
|
end
|
data/bin/antetype
ADDED
data/lib/antetype.rb
CHANGED
data/lib/antetype/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: antetype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Gudao Luo
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-04-
|
13
|
+
date: 2012-04-14 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -23,25 +23,33 @@ dependencies:
|
|
23
23
|
version: 2.6.0
|
24
24
|
type: :development
|
25
25
|
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: thor
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.14.6
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
26
37
|
description: Write a gem description
|
27
38
|
email:
|
28
39
|
- gudao.luo@gmail.com
|
29
|
-
executables:
|
30
|
-
|
40
|
+
executables:
|
41
|
+
- antetype
|
31
42
|
extensions: []
|
32
43
|
|
33
44
|
extra_rdoc_files: []
|
34
45
|
|
35
46
|
files:
|
36
|
-
- .gitignore
|
37
47
|
- Gemfile
|
38
48
|
- Rakefile
|
39
49
|
- antetype.gemspec
|
40
|
-
-
|
41
|
-
- features/check_constants_en.feature
|
42
|
-
- features/step_definitions/check_constants_steps.rb
|
43
|
-
- features/support/env.rb
|
50
|
+
- bin/antetype
|
44
51
|
- lib/antetype.rb
|
52
|
+
- lib/antetype/base.rb
|
45
53
|
- lib/antetype/version.rb
|
46
54
|
homepage: http://www.lycom.de
|
47
55
|
licenses: []
|
@@ -66,12 +74,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
74
|
requirements: []
|
67
75
|
|
68
76
|
rubyforge_project: antetype
|
69
|
-
rubygems_version: 1.8.
|
77
|
+
rubygems_version: 1.8.22
|
70
78
|
signing_key:
|
71
79
|
specification_version: 3
|
72
80
|
summary: Write a gem summary
|
73
|
-
test_files:
|
74
|
-
|
75
|
-
- features/check_constants_en.feature
|
76
|
-
- features/step_definitions/check_constants_steps.rb
|
77
|
-
- features/support/env.rb
|
81
|
+
test_files: []
|
82
|
+
|
data/.gitignore
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# language: en, 英文版本
|
2
|
-
Feature: CONSTANT
|
3
|
-
In order to check the constant
|
4
|
-
As a user of the constant
|
5
|
-
I want to see that the constant is
|
6
|
-
|
7
|
-
Scenario: Checking whether the CONSTANT is constant
|
8
|
-
When I check a CONSTANT
|
9
|
-
Then I should see that the CONSTANT type is <constant>
|
10
|
-
|
11
|
-
Scenario: Checking whether the CONSTANT value is correct
|
12
|
-
When I have a CONSTANT
|
13
|
-
Then I should see that the CONSTANT value is <~/.antetype>
|
14
|
-
|
15
|
-
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
当 /^: 我验证一个常量$/ do
|
4
|
-
@result = defined? Antetype::DEFAULT_CONFIG_PATH
|
5
|
-
end
|
6
|
-
|
7
|
-
那么 /^: 我应该看到该常量类型是<(.*)>$/ do |result|
|
8
|
-
@result.should == result.downcase
|
9
|
-
end
|
10
|
-
|
11
|
-
当 /^: 我有一个常量$/ do
|
12
|
-
@result = Antetype::DEFAULT_CONFIG_PATH
|
13
|
-
end
|
14
|
-
|
15
|
-
那么 /^: 我应该看到该常量值是<(.*)>$/ do |result|
|
16
|
-
@result.should == result
|
17
|
-
end
|
18
|
-
|
19
|
-
When /^I check a CONSTANT/ do
|
20
|
-
@result = defined? Antetype::DEFAULT_CONFIG_PATH
|
21
|
-
end
|
22
|
-
|
23
|
-
Then /^I should see that the CONSTANT type is <(.*)>/ do |result|
|
24
|
-
@result.should == result.downcase
|
25
|
-
end
|
26
|
-
|
27
|
-
When /^I have a CONSTANT/ do
|
28
|
-
@result = Antetype::DEFAULT_CONFIG_PATH
|
29
|
-
end
|
30
|
-
|
31
|
-
Then /^I should see that the CONSTANT value is <(.*)>/ do |result|
|
32
|
-
@result.should == result
|
33
|
-
end
|
34
|
-
|
35
|
-
# 当 /^: 我验证一个常量$/ do
|
36
|
-
# @result = defined? Antetype::DEFAULT_CONFIG_PATH
|
37
|
-
# end
|
38
|
-
#
|
39
|
-
# 那么 /^: 我应该看到该常量类型是<(constant)>$/ do |result|
|
40
|
-
# @result.should == result.downcase
|
41
|
-
# end
|
42
|
-
#
|
43
|
-
# 当 /^: 我有一个常量$/ do
|
44
|
-
# @result = Antetype::DEFAULT_CONFIG_PATH
|
45
|
-
# end
|
46
|
-
#
|
47
|
-
# 那么 /^: 我应该看到该常量值是<(~\/\.antetype)>$/ do |result|
|
48
|
-
# @result.should == result
|
49
|
-
# end
|
50
|
-
|
51
|
-
# require 'antetype'
|
52
|
-
|
53
|
-
|
data/features/support/env.rb
DELETED