gimmick-inflection 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +14 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +5 -0
- data/features/build.feature +16 -0
- data/features/step_definitions/gem_steps.rb +36 -0
- data/features/support/env.rb +5 -0
- data/gimmick-inflection.gemspec +23 -0
- data/lib/gimmick/inflection.rb +7 -0
- data/lib/gimmick/inflection/version.rb +5 -0
- data/lib/tasks/cucumber.rake +6 -0
- data/lib/tasks/yard.rake +8 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a764848c16509f3c7a19c15e0f812bfff45874d6
|
4
|
+
data.tar.gz: 259e66f3b9282fc51dc0574f8072dea5c42b5e5f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4b9015202bfb1b6374ffc5a2505139ee5076c4f5518fdbcabcdce996e814b0ee1c677c310f0fa37d91323f4796870fbd1f1575a2db8cdcb8972800eab5a0b582
|
7
|
+
data.tar.gz: 0bd22955e17dad571eefd363a80e7cebc45f455e1727eba3fc3ad888f6205b3d7409b9204e2eda6412b406a2b463206184c9a382b8785c099d82e66ec1c63cae
|
data/.gitignore
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in gimmick-inflection.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
gem 'rake', '~> 10.1.0'
|
7
|
+
gem 'yard', '0.8.7.1', require: false
|
8
|
+
gem 'redcarpet', '3.0.0', require: false
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem 'rspec', '~> 2.14.1'
|
12
|
+
gem 'cucumber', '~> 1.3.8'
|
13
|
+
gem 'aruba', '~> 0.5.3'
|
14
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 masahiro yanai
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Gimmick::Inflection
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'gimmick-inflection'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install gimmick-inflection
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# language: ja
|
2
|
+
|
3
|
+
機能: Gemのビルド
|
4
|
+
|
5
|
+
シナリオ: gemコマンドを使ったビルド
|
6
|
+
前提 プロジェクトルートにいる
|
7
|
+
かつ ディレクトリ"pkg"が削除されている
|
8
|
+
もし rakeタスク"build"を実行する
|
9
|
+
ならば 標準出力が下記の正規表現にマッチする:
|
10
|
+
"""
|
11
|
+
gimmick-inflection \d.\d.\d(.\w+)? built to pkg/gimmick-inflection-\d.\d.\d(.\w+)?.gem
|
12
|
+
"""
|
13
|
+
かつ 終了コードが"0"である
|
14
|
+
かつ ディレクトリ"pkg"が存在している
|
15
|
+
かつ 下記のファイルが存在している:
|
16
|
+
|pkg/gimmick-inflection-0.0.1.gem|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
Before do
|
2
|
+
@root_dir = File.expand_path('../../../', __FILE__)
|
3
|
+
@dirs = [@root_dir]
|
4
|
+
end
|
5
|
+
|
6
|
+
After do
|
7
|
+
end
|
8
|
+
|
9
|
+
前提 "プロジェクトルートにいる" do
|
10
|
+
`pwd`.strip.should == @root_dir
|
11
|
+
end
|
12
|
+
|
13
|
+
前提 /^ディレクトリ"(.*?)"が削除されている$/ do |path|
|
14
|
+
FileUtils.rm_rf path
|
15
|
+
check_directory_presence([path], false)
|
16
|
+
end
|
17
|
+
|
18
|
+
もし /^rakeタスク"(.*?)"を実行する$/ do |task_name|
|
19
|
+
run_simple "rake #{task_name}"
|
20
|
+
end
|
21
|
+
|
22
|
+
ならば /^終了コードが"(.*?)"である$/ do |exit_status|
|
23
|
+
assert_exit_status(exit_status.to_i)
|
24
|
+
end
|
25
|
+
|
26
|
+
ならば /^標準出力が下記の正規表現にマッチする:$/ do |expected|
|
27
|
+
assert_matching_output(expected, all_stdout)
|
28
|
+
end
|
29
|
+
|
30
|
+
ならば /^ディレクトリ"(.*?)"が存在して(いる|いない)$/ do |directory, presence|
|
31
|
+
check_directory_presence([directory], (presence == "いる"))
|
32
|
+
end
|
33
|
+
|
34
|
+
ならば /^下記のファイルが存在している:$/ do |files|
|
35
|
+
check_file_presence(files.raw.map{|file_row| file_row[0]}, true)
|
36
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'gimmick/inflection/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "gimmick-inflection"
|
8
|
+
spec.version = Gimmick::Inflection::VERSION
|
9
|
+
spec.authors = ["masahiro yanai"]
|
10
|
+
spec.email = ["yanap1214@gmail.com"]
|
11
|
+
spec.description = %q{gimmick ruby gem. change to end of a sentence.}
|
12
|
+
spec.summary = %q{I want to change to various end of a sentence.}
|
13
|
+
spec.homepage = "https://github.com/yanap/gimmick-inflection"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
data/lib/tasks/yard.rake
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
require 'yard'
|
2
|
+
require 'yard/rake/yardoc_task'
|
3
|
+
|
4
|
+
YARD::Rake::YardocTask.new do |task|
|
5
|
+
task.files = ['app/controllers/**/*.rb', 'app/helpers/**/*.rb', 'app/mailers/**/*.rb', 'app/models/**/*.rb', 'lib/**/*.rb']
|
6
|
+
task.options = ['--no-private']
|
7
|
+
task.options << '--debug' << '--verbose' if $trace
|
8
|
+
end
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gimmick-inflection
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- masahiro yanai
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: gimmick ruby gem. change to end of a sentence.
|
42
|
+
email:
|
43
|
+
- yanap1214@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- features/build.feature
|
54
|
+
- features/step_definitions/gem_steps.rb
|
55
|
+
- features/support/env.rb
|
56
|
+
- gimmick-inflection.gemspec
|
57
|
+
- lib/gimmick/inflection.rb
|
58
|
+
- lib/gimmick/inflection/version.rb
|
59
|
+
- lib/tasks/cucumber.rake
|
60
|
+
- lib/tasks/yard.rake
|
61
|
+
homepage: https://github.com/yanap/gimmick-inflection
|
62
|
+
licenses:
|
63
|
+
- MIT
|
64
|
+
metadata: {}
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
requirements: []
|
80
|
+
rubyforge_project:
|
81
|
+
rubygems_version: 2.0.3
|
82
|
+
signing_key:
|
83
|
+
specification_version: 4
|
84
|
+
summary: I want to change to various end of a sentence.
|
85
|
+
test_files:
|
86
|
+
- features/build.feature
|
87
|
+
- features/step_definitions/gem_steps.rb
|
88
|
+
- features/support/env.rb
|
89
|
+
has_rdoc:
|