middleman-gemoji 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ae0c26df288e2834a62271d78d51b7d6ce9a8c9
4
- data.tar.gz: 6f48e19c06ec735c31765bc22d278666988984dc
3
+ metadata.gz: d4dc867d4198397aa0eeb5fa5f97922e9883b18e
4
+ data.tar.gz: 48f878d8fb5145195c414e0c76003acb67c9c1cc
5
5
  SHA512:
6
- metadata.gz: 310cd001b7eb95d41e2303ea6432f55e153bba8f36f9c949fd08f890b1bd171b62c8512a48f9dea014530ad90f458c6e800adf33d826f0ee59766e87f6110a58
7
- data.tar.gz: 8246d345c58d3c0f5ea224f2ce64705c350357818a9d16700fed50fc48a84d83fbfc1fc3d7272bc41192a6abfa81825c1b8e8c56d00c60f60f859ae4c8a8d717
6
+ metadata.gz: 418f51f1c33ee8f07f6c35c85aa5687c3cf8fb24ce27a4fecdb248ac9d82b873f8d016b277da1b23108c0e4ecec0dbb74668d6947cd8774b31ced40210eef49b
7
+ data.tar.gz: 8ded88a7835c4cd05421f20924ce479b6c5705cc77fb7ed0781ff2bd7244b3a745365d795aa332cf5ffe669898945fed77a86d3e693e2b54a0ca9489ce6a43fc
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor
10
11
  *.bundle
11
12
  *.so
12
13
  *.o
data/.travis.yml CHANGED
@@ -2,21 +2,15 @@ language: ruby
2
2
  script: bundle exec cucumber
3
3
  rvm:
4
4
  - ruby-head
5
- - jruby-head
6
- - jruby-19mode
7
5
  - 2.2
8
6
  - 2.1
9
7
  - 2.0
10
- - 1.9.3
11
8
  os:
12
9
  - linux
13
- - osx
14
10
  matrix:
15
11
  fast_finish: true
16
12
  allow_failures:
17
13
  - rvm: ruby-head
18
- - rvm: jruby-19mode
19
- - rvm: jruby-head
20
14
  env: TEST=true
21
15
  notifications:
22
16
  slack:
@@ -4,12 +4,12 @@ require 'gemoji'
4
4
  module Middleman
5
5
  module Cli
6
6
  # Command Class
7
- class Gemoji < Thor
7
+ class Gemoji < Thor::Group
8
8
  include Thor::Actions
9
9
 
10
10
  check_unknown_options!
11
11
 
12
- namespace :gemoji
12
+ #namespace :gemoji
13
13
 
14
14
  def initialize(*args)
15
15
  super
@@ -24,18 +24,22 @@ module Middleman
24
24
  true
25
25
  end
26
26
 
27
- desc 'gemoji', 'Copy emoji to destination directory'
28
- method_option 'path',
27
+ class_option 'path',
28
+ type: :string,
29
+ default: 'images/emoji',
29
30
  aliases: '-p',
30
- desc: 'Destination path of directory',
31
- default: 'images/emoji'
32
- def gemoji
31
+ desc: 'Destination path of directory'
32
+
33
+ def install
33
34
  app = ::Middleman::Application
34
35
  target = File.join(app.root, app.config.source, options[:path])
35
36
  source = File.expand_path('../../images/emoji/*', `gem which gemoji`)
36
37
 
37
38
  `mkdir -p #{target} && cp -Rp #{source} #{target}`
38
39
  end
40
+
41
+ # Add to CLI
42
+ Base.register(self, 'gemoji', 'gemoji [options]', "hoge")
39
43
  end
40
44
  end
41
45
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module Gemoji
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.required_ruby_version = '>= 1.9.3'
21
+ spec.required_ruby_version = '>= 2.0.0'
22
22
 
23
- spec.add_runtime_dependency "middleman", "~> 3.3"
24
- spec.add_runtime_dependency "gemoji", "~> 2.1"
23
+ spec.add_runtime_dependency "middleman", ">= 3.3"
24
+ spec.add_runtime_dependency "gemoji", ">= 2.1"
25
25
 
26
- spec.add_development_dependency "cucumber", "~> 1.3"
27
- spec.add_development_dependency "aruba", "~> 0.6"
28
- spec.add_development_dependency "bundler", "~> 1.5"
29
- spec.add_development_dependency "rake", "~> 10"
30
- spec.add_development_dependency "slim", "~> 3.0"
26
+ spec.add_development_dependency "cucumber", ">= 1.3"
27
+ spec.add_development_dependency "aruba", ">= 0.6"
28
+ spec.add_development_dependency "bundler", ">= 1.5"
29
+ spec.add_development_dependency "rake", ">= 10"
30
+ spec.add_development_dependency "slim", ">= 3.0"
31
31
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-gemoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Terajima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemoji
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cucumber
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aruba
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.6'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.5'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.5'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '10'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '10'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: slim
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '3.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.0'
111
111
  description: Github-flavored emoji plugin for Middleman.
@@ -115,8 +115,8 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ".gitignore"
119
- - ".travis.yml"
118
+ - .gitignore
119
+ - .travis.yml
120
120
  - Gemfile
121
121
  - LICENSE.txt
122
122
  - README.md
@@ -168,17 +168,17 @@ require_paths:
168
168
  - lib
169
169
  required_ruby_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - '>='
172
172
  - !ruby/object:Gem::Version
173
- version: 1.9.3
173
+ version: 2.0.0
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  requirements:
176
- - - ">="
176
+ - - '>='
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.4.5
181
+ rubygems_version: 2.0.14
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Github-flavored emoji plugin for Middleman.