starter 0.1.12 → 0.2.0
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.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/starter/tasks/gems/release.rb +15 -0
- data/lib/starter/tasks/gems.rb +2 -13
- data/lib/starter/tasks/npm/release.rb +11 -0
- data/lib/starter/tasks/npm.rb +0 -9
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6122c952a2ed47b8748d79e4029ac2e71c28c00
|
4
|
+
data.tar.gz: 3a8ffe288cd7232ec33a31fa8daf8f508b27852b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9579a531fb84149c348be63230861962861768b4c65008df659a7a628e7d89e9a7c6b517b0c1876216b6f88cd045d66b8ffe2c6c0dd0a89550bebfafb7ca2856
|
7
|
+
data.tar.gz: 5c3fe90f2ec04b95e6e5e9e989be671c44c08b70302ad28f839923a69fa2e03de1ad459b397245b4a3d3797792c2550469d801fb6f84fde6266ec39aace1db37
|
data/Rakefile
CHANGED
@@ -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
|
+
|
data/lib/starter/tasks/gems.rb
CHANGED
@@ -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]
|
data/lib/starter/tasks/npm.rb
CHANGED
@@ -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.
|
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-
|
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: []
|