jgd 1.5.3 → 1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ MethodLength:
2
+ Max: 30
@@ -3,6 +3,8 @@ decrypt:
3
3
 
4
4
  release:
5
5
  script: |
6
+ git config --global user.email "test@example.com"
7
+ git config --global user.name "Test"
6
8
  ./test.sh
7
9
  rm -rf *.gem
8
10
  sed -i "s/2.0.snapshot/${tag}/g" jgd.gemspec
@@ -5,5 +5,8 @@ branches:
5
5
  install:
6
6
  - bundle install
7
7
  script:
8
+ - git config --global user.email "test@example.com"
9
+ - git config --global user.name "Test"
10
+ - rake
8
11
  - ./test.sh
9
12
 
@@ -0,0 +1,71 @@
1
+ # encoding: utf-8
2
+ #
3
+ # Copyright (c) 2014 TechnoPark Corp.
4
+ # Copyright (c) 2014 Yegor Bugayenko
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the 'Software'), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+
24
+ require 'rubygems'
25
+ require 'rake'
26
+ require 'rdoc'
27
+ require 'rake/clean'
28
+
29
+ CLEAN = FileList['coverage', 'rdoc']
30
+
31
+ def name
32
+ @name ||= File.basename(Dir['*.gemspec'].first, '.*')
33
+ end
34
+
35
+ def version
36
+ Gem::Specification.load(Dir['*.gemspec'].first).version
37
+ end
38
+
39
+ task default: [:clean, :test, :features, :rubocop]
40
+
41
+ require 'rake/testtask'
42
+ desc 'Run all unit tests'
43
+ Rake::TestTask.new(:test) do |test|
44
+ test.libs << 'lib' << 'test'
45
+ test.pattern = 'test/**/test_*.rb'
46
+ test.verbose = false
47
+ end
48
+
49
+ require 'rdoc/task'
50
+ desc 'Build RDoc documentation'
51
+ Rake::RDocTask.new do |rdoc|
52
+ rdoc.rdoc_dir = 'rdoc'
53
+ rdoc.title = "#{name} #{version}"
54
+ rdoc.rdoc_files.include('README*')
55
+ rdoc.rdoc_files.include('lib/**/*.rb')
56
+ end
57
+
58
+ require 'rubocop/rake_task'
59
+ desc 'Run RuboCop on all directories'
60
+ RuboCop::RakeTask.new(:rubocop) do |task|
61
+ task.fail_on_error = true
62
+ task.requires << 'rubocop-rspec'
63
+ end
64
+
65
+ require 'cucumber/rake/task'
66
+ Cucumber::Rake::Task.new(:features) do |t|
67
+ t.profile = 'travis'
68
+ end
69
+ Cucumber::Rake::Task.new(:"features:html") do |t|
70
+ t.profile = 'html_report'
71
+ end
@@ -13,9 +13,14 @@ git clone "${URL}" "${CLONE}"
13
13
  echo -e "\nRegistering variables:"
14
14
  cd "${CLONE}"
15
15
  USER_EMAIL=$(git config --get user.email | cat)
16
- USER_EMAIL=${USER_EMAIL:-"jgd@teamed.io"}
17
16
  USER_NAME=$(git config --get user.name | cat)
18
- USER_NAME=${USER_NAME:-"jekyll-github-deploy"}
17
+ echo "user.name=${USER_NAME}"
18
+ echo "user.email=${USER_EMAIL}"
19
+ if [ "${USER_EMAIL}" = "" -o "${USER_NAME}" = "" ]; then
20
+ echo "user.email or user.name is not configured in Git repository"
21
+ echo "see https://help.github.com/articles/setting-your-email-in-git/"
22
+ exit -1
23
+ fi
19
24
 
20
25
  VERSION=$(git describe --always --tag)
21
26
 
data/bin/jgd CHANGED
@@ -2,23 +2,20 @@
2
2
  STDOUT.sync = true
3
3
 
4
4
  require 'trollop'
5
- opts = Trollop::options do
5
+ opts = Trollop.options do
6
6
  banner <<-EOS
7
7
  jgd is an automated deployer of Jekyll site to Github Pages
8
8
 
9
9
  Usage: jgd [options]
10
10
  EOS
11
- opt :url, "Github URL", :type=>String, :default=>''
11
+ opt :url, 'Github URL', type: String, default: ''
12
12
  end
13
13
 
14
14
  url = opts[:url]
15
- if url.empty?
16
- url = `git config --get remote.origin.url`
17
- end
15
+ url = `git config --get remote.origin.url` if url.empty?
18
16
 
19
- spec = Gem::Specification.find_by_name("jgd")
17
+ spec = Gem::Specification.find_by_name('jgd')
20
18
  root = spec.gem_dir
21
19
  script = File.join(root, 'bash/deploy.sh')
22
- if !system("#{script} #{url}")
23
- raise "deployment failed, see log above"
24
- end
20
+
21
+ fail 'deployment failed, see log above' unless system("#{script} #{url}")
@@ -1,22 +1,32 @@
1
1
  # coding: utf-8
2
+ require 'English'
2
3
  Gem::Specification.new do |s|
3
4
  s.specification_version = 2 if s.respond_to? :specification_version=
4
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
+ if s.respond_to? :required_rubygems_version=
6
+ s.required_rubygems_version = Gem::Requirement.new('>= 0')
7
+ end
5
8
  s.rubygems_version = '2.2.2'
6
9
  s.required_ruby_version = '>= 1.9.3'
7
10
  s.name = 'jgd'
8
- s.version = '1.5.3'
11
+ s.version = '1.6'
9
12
  s.license = 'MIT'
10
- s.summary = "Jekyll Github Deploy"
11
- s.description = "Automated deployment of your Jekyll blog to Github Pages"
12
- s.authors = ["Yegor Bugayenko"]
13
+ s.summary = 'Jekyll Github Deploy'
14
+ s.description = 'Automated deployment of your Jekyll blog to Github Pages'
15
+ s.authors = ['Yegor Bugayenko']
13
16
  s.email = 'yegor@tpc2.com'
14
17
  s.homepage = 'http://github.com/yegor256/jekyll-github-deploy'
15
- s.files = `git ls-files`.split($/)
16
- s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
- s.rdoc_options = ["--charset=UTF-8"]
19
- s.extra_rdoc_files = %w[README.md LICENSE.txt]
18
+ s.files = `git ls-files`.split($RS)
19
+ s.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
20
+ s.test_files = s.files.grep(/^(test|spec|features)\//)
21
+ s.rdoc_options = ['--charset=UTF-8']
22
+ s.extra_rdoc_files = ['README.md', 'LICENSE.txt']
20
23
  s.add_runtime_dependency('trollop', '2.0')
21
24
  s.add_runtime_dependency('jekyll', '>=1.5.1')
25
+ s.add_development_dependency 'coveralls', '~> 0.7', '>= 0.7.0'
26
+ s.add_development_dependency 'rdoc', '~> 3.11'
27
+ s.add_development_dependency 'cucumber', '1.3.11'
28
+ s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.0'
29
+ s.add_development_dependency 'rubocop', '~> 0.24', '>= 0.24.1'
30
+ s.add_development_dependency 'rubocop-rspec', '~> 1.1', '>= 1.1.0'
31
+ s.add_development_dependency 'rspec-rails', '~> 2.13'
22
32
  end
@@ -1,15 +1,17 @@
1
1
  -----BEGIN PGP MESSAGE-----
2
2
  Version: GnuPG v1
3
3
 
4
- hQEMA5qETcGag5w6AQgAkzhZ/KHs9mg/m3oFXyi9VDpJ9UXviysSY++06JdHQuaC
5
- BZ5vpTfElo9ZNwAclVRPDV36yA5iPBaWQ0RjVb5w3W6i7AUh3+ApMA+0/Eed2cNe
6
- OEtesGFU0zXlJxr1qTl37NJr1yYNlcOgeGWSI1Ked/OfLjREe0KVxNlEO0FfIOgu
7
- dixfWhL5HRWnFjYdSDiBYyNImNOiChHIcFXURDJZ+IqVisTuAy4x7x4xoz4mrEFU
8
- tijH/6RB8/fHimYQ+aiHeOLFFvVrqDGPPAlMAUgb3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JhfrMbQsXp8wUL9DruXqQ81a0GeoAgu9qXhhpZCxLvjc5sv3UuRy5n
15
+ bSwrMq6KYr+d
16
+ =+Apj
15
17
  -----END PGP MESSAGE-----
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jgd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: '1.6'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-01 00:00:00.000000000 Z
12
+ date: 2014-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
@@ -43,6 +43,142 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: 1.5.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: coveralls
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '0.7'
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: 0.7.0
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ~>
63
+ - !ruby/object:Gem::Version
64
+ version: '0.7'
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: 0.7.0
68
+ - !ruby/object:Gem::Dependency
69
+ name: rdoc
70
+ requirement: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.11'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: '3.11'
84
+ - !ruby/object:Gem::Dependency
85
+ name: cucumber
86
+ requirement: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - '='
90
+ - !ruby/object:Gem::Version
91
+ version: 1.3.11
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - '='
98
+ - !ruby/object:Gem::Version
99
+ version: 1.3.11
100
+ - !ruby/object:Gem::Dependency
101
+ name: minitest
102
+ requirement: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ~>
106
+ - !ruby/object:Gem::Version
107
+ version: '5.4'
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 5.4.0
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: '5.4'
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: 5.4.0
122
+ - !ruby/object:Gem::Dependency
123
+ name: rubocop
124
+ requirement: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ~>
128
+ - !ruby/object:Gem::Version
129
+ version: '0.24'
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: 0.24.1
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ~>
139
+ - !ruby/object:Gem::Version
140
+ version: '0.24'
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: 0.24.1
144
+ - !ruby/object:Gem::Dependency
145
+ name: rubocop-rspec
146
+ requirement: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ~>
150
+ - !ruby/object:Gem::Version
151
+ version: '1.1'
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: 1.1.0
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ~>
161
+ - !ruby/object:Gem::Version
162
+ version: '1.1'
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: 1.1.0
166
+ - !ruby/object:Gem::Dependency
167
+ name: rspec-rails
168
+ requirement: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: '2.13'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ~>
180
+ - !ruby/object:Gem::Version
181
+ version: '2.13'
46
182
  description: Automated deployment of your Jekyll blog to Github Pages
47
183
  email: yegor@tpc2.com
48
184
  executables:
@@ -53,11 +189,13 @@ extra_rdoc_files:
53
189
  - LICENSE.txt
54
190
  files:
55
191
  - .gitignore
192
+ - .rubocop.yml
56
193
  - .rultor.yml
57
194
  - .travis.yml
58
195
  - Gemfile
59
196
  - LICENSE.txt
60
197
  - README.md
198
+ - Rakefile
61
199
  - bash/deploy.sh
62
200
  - bin/jgd
63
201
  - jgd.gemspec