antetype 0.0.1

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.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in antetype.gemspec
4
+ gemspec
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "antetype/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "antetype"
7
+ s.version = Antetype::VERSION
8
+ s.authors = ["Gudao Luo"]
9
+ s.email = ["gudao.luo@gmail.com"]
10
+ s.homepage = "http://www.lycom.de"
11
+ s.summary = %q{Write a gem summary}
12
+ s.description = %q{Write a gem description}
13
+
14
+ s.rubyforge_project = "antetype"
15
+
16
+ s.files = `git ls-files`.split("\n")
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) }
19
+ s.require_paths = ["lib"]
20
+
21
+ s.add_development_dependency 'rspec', '~> 2.6.0'
22
+ end
@@ -0,0 +1,13 @@
1
+ # language: zh-CN, 简体中文版本
2
+ 功能: 在模块中定义常量数据
3
+ 为了验证常量
4
+ 作为常量的使用者
5
+ 我希望看到常量是否正确
6
+
7
+ 场景: 检验变量是否为常量
8
+ 当: 我验证一个常量
9
+ 那么: 我应该看到该常量类型是<constant>
10
+
11
+ 场景: 检验常量值是否正确
12
+ 当: 我有一个常量
13
+ 那么: 我应该看到该常量值是<~/.antetype>
@@ -0,0 +1,15 @@
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
+
@@ -0,0 +1,53 @@
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
+
@@ -0,0 +1,2 @@
1
+ # encoding: utf-8
2
+ require 'antetype'
@@ -0,0 +1,5 @@
1
+ require "antetype/version"
2
+
3
+ module Antetype
4
+ DEFAULT_CONFIG_PATH = '~/.antetype'
5
+ end
@@ -0,0 +1,3 @@
1
+ module Antetype
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: antetype
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Gudao Luo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-04-13 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 2.6.0
24
+ type: :development
25
+ version_requirements: *id001
26
+ description: Write a gem description
27
+ email:
28
+ - gudao.luo@gmail.com
29
+ executables: []
30
+
31
+ extensions: []
32
+
33
+ extra_rdoc_files: []
34
+
35
+ files:
36
+ - .gitignore
37
+ - Gemfile
38
+ - Rakefile
39
+ - 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
44
+ - lib/antetype.rb
45
+ - lib/antetype/version.rb
46
+ homepage: http://www.lycom.de
47
+ licenses: []
48
+
49
+ post_install_message:
50
+ rdoc_options: []
51
+
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ requirements: []
67
+
68
+ rubyforge_project: antetype
69
+ rubygems_version: 1.8.21
70
+ signing_key:
71
+ specification_version: 3
72
+ 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