starter 0.1.12 → 0.2.0

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: affd5bb94d5a4b621b2eab575ad4fe6117a6a83e
4
- data.tar.gz: 9e0903074cec256ee7951fc403238bddb59ee2ed
3
+ metadata.gz: d6122c952a2ed47b8748d79e4029ac2e71c28c00
4
+ data.tar.gz: 3a8ffe288cd7232ec33a31fa8daf8f508b27852b
5
5
  SHA512:
6
- metadata.gz: 46fd84be35e764bafbef5df01347191eec36fe8d9e0b10f8a5ace2295caeed2650d0324b0a523c8f7f9d4fd9eb4fe6d36bffc1cf1ee370530d08162cee0000ce
7
- data.tar.gz: e30d6a3ba10ccfcee744b1e5d005000fca20be73537ff7aaa2015bbf3caac269f0023202c7dfb08010dccb1a493594d2373df9dbff0e01b12f9034f4162085fd
6
+ metadata.gz: 9579a531fb84149c348be63230861962861768b4c65008df659a7a628e7d89e9a7c6b517b0c1876216b6f88cd045d66b8ffe2c6c0dd0a89550bebfafb7ca2856
7
+ data.tar.gz: 5c3fe90f2ec04b95e6e5e9e989be671c44c08b70302ad28f839923a69fa2e03de1ad459b397245b4a3d3797792c2550469d801fb6f84fde6266ec39aace1db37
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  $:.unshift("lib")
2
2
 
3
- require "starter/tasks/gems"
3
+ require "starter/tasks/gems/release"
4
4
  require "starter/tasks/github"
5
5
  require "starter/tasks/git"
6
6
 
@@ -0,0 +1,15 @@
1
+ require "starter/tasks/gems"
2
+
3
+ desc "push rubygem"
4
+ task "release" => %w[ gem:push ]
5
+
6
+ task "gem:push" do
7
+ gemfiles = FileList["#{Starter.cache[:project_name]}-*.gem"]
8
+ if gemfiles.size == 1
9
+ command = "gem push #{gemfiles.first}"
10
+ confirm_command(command)
11
+ else
12
+ puts "Found more than one gemfile in the working directory."
13
+ end
14
+ end
15
+
@@ -1,12 +1,11 @@
1
1
  require "starter/tasks/starter"
2
2
 
3
+
3
4
  gemspec_path = FileList["*.gemspec"].first || "#{Starter.cache[:directory]}.gemspec"
4
- project_name = gemspec_path.chomp(".gemspec")
5
+ Starter.cache[:project_name] = project_name = gemspec_path.chomp(".gemspec")
5
6
 
6
7
  task "bootstrap" => [ gemspec_path, "lib", "lib/#{project_name}.rb" ]
7
8
 
8
- task "release" => %w[ gem:push ]
9
-
10
9
 
11
10
  directory "lib"
12
11
 
@@ -37,16 +36,6 @@ task "gem:build" do
37
36
  sh "gem build #{gemspec_path}"
38
37
  end
39
38
 
40
- task "gem:push" do
41
- gemfiles = FileList["#{project_name}-*.gem"]
42
- if gemfiles.size == 1
43
- command = "gem push #{gemfiles.first}"
44
- confirm_command(command)
45
- else
46
- puts "Found more than one gemfile in the working directory."
47
- end
48
- end
49
-
50
39
  desc "Install dependencies from the gemspec"
51
40
  task "gem:deps" => "read_gemspec" do
52
41
  gemspec = Starter.cache[:gemspec]
@@ -0,0 +1,11 @@
1
+ require "starter/tasks/npm"
2
+
3
+ desc "publish as an NPM package"
4
+ task "release" => %w[ npm:publish ]
5
+
6
+ task "npm:publish" => %w[ version ] do
7
+ puts "Version in package.json is #{Starter.cache[:version]}"
8
+ confirm_command("npm publish")
9
+ end
10
+
11
+
@@ -6,15 +6,6 @@ file "package.json" => %w[ determine_author ] do |target|
6
6
  sh "npm init"
7
7
  end
8
8
 
9
-
10
- desc "publish as an NPM package"
11
- task "release" => %w[ npm:publish ]
12
-
13
- task "npm:publish" => %w[ version ] do
14
- puts "Version in package.json is #{Starter.cache[:version]}"
15
- confirm_command("npm publish")
16
- end
17
-
18
9
  task "version" => "read_package" do
19
10
  Starter.cache[:version] = Starter.cache[:npm_package][:version]
20
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew King
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-18 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -73,10 +73,12 @@ files:
73
73
  - lib/starter/random.rb
74
74
  - lib/starter/tasks/bootstrap.rb
75
75
  - lib/starter/tasks/gems.rb
76
+ - lib/starter/tasks/gems/release.rb
76
77
  - lib/starter/tasks/git.rb
77
78
  - lib/starter/tasks/github.rb
78
79
  - lib/starter/tasks/markdown.rb
79
80
  - lib/starter/tasks/npm.rb
81
+ - lib/starter/tasks/npm/release.rb
80
82
  - lib/starter/tasks/starter.rb
81
83
  homepage: https://github.com/automatthew/starter
82
84
  licenses: []