antetype 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require 'antetype'
3
+
4
+ Antetype::Base.start
5
+
@@ -1,4 +1,5 @@
1
- require "antetype/version"
1
+ require 'antetype/version'
2
+ require 'antetype/base'
2
3
 
3
4
  module Antetype
4
5
  DEFAULT_CONFIG_PATH = '~/.antetype'
@@ -0,0 +1,10 @@
1
+ require 'thor'
2
+
3
+ module Antetype
4
+ class Base < Thor
5
+ desc "show_antetype_dir", "show antetype dir"
6
+ def show_antetype_dir
7
+ say "#{Antetype::DEFAULT_CONFIG_PATH}", :green
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Antetype
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: antetype
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
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 00:00:00 Z
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
- - features/check_constants_cn.feature
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.21
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
- - features/check_constants_cn.feature
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,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
@@ -1,13 +0,0 @@
1
- # language: zh-CN, 简体中文版本
2
- 功能: 在模块中定义常量数据
3
- 为了验证常量
4
- 作为常量的使用者
5
- 我希望看到常量是否正确
6
-
7
- 场景: 检验变量是否为常量
8
- 当: 我验证一个常量
9
- 那么: 我应该看到该常量类型是<constant>
10
-
11
- 场景: 检验常量值是否正确
12
- 当: 我有一个常量
13
- 那么: 我应该看到该常量值是<~/.antetype>
@@ -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
-
@@ -1,2 +0,0 @@
1
- # encoding: utf-8
2
- require 'antetype'