starter 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  $:.unshift("lib")
2
+
2
3
  require "starter/tasks/gems"
3
4
  require "starter/tasks/github"
4
5
  require "starter/tasks/git"
@@ -3,6 +3,7 @@ require "starter/tasks/starter"
3
3
  $STARTER[:directory] = File.basename(Dir.pwd)
4
4
  $STARTER[:gemspec_file] = "#{$STARTER[:directory]}.gemspec"
5
5
 
6
+ desc "Bootstrap your project"
6
7
  task "bootstrap" => %w[ LICENSE ]
7
8
 
8
9
  file "LICENSE" => %w[ determine_author ] do
@@ -29,6 +29,7 @@ file gemspec_path do |target|
29
29
  end
30
30
  end
31
31
 
32
+ desc "Build everything that needs building"
32
33
  task "build" => %w[ gem:build ]
33
34
 
34
35
  desc "build a gem using #{gemspec_path}"
@@ -1,27 +1,26 @@
1
-
1
+ require "starter/tasks/starter"
2
2
 
3
3
  task "bootstrap" => %w[ package.json ]
4
4
 
5
5
  file "package.json" => %w[ determine_author ] do |target|
6
- File.open(target.name, "w") do |file|
7
- file.puts package(
8
- :project_name => $STARTER[:directory],
9
- :author => $STARTER[:author],
10
- )
11
- end
6
+ sh "npm init"
12
7
  end
13
8
 
14
9
 
15
- task "npm:release" => %w[ npm:publish ]
10
+ desc "publish as an NPM package"
11
+ task "release" => %w[ npm:publish ]
16
12
 
17
- task "npm:publish" do
18
- sh "npm publish"
13
+ task "npm:publish" => %w[ version ] do
14
+ puts "Version in package.json is #{$STARTER[:version]}"
15
+ confirm_command("npm publish")
19
16
  end
20
17
 
21
18
  task "version" => "read_package" do
22
- pp $STARTER[:version] = $STARTER[:npm_package][:version]
19
+ $STARTER[:version] = $STARTER[:npm_package][:version]
23
20
  end
24
21
 
22
+ # this seems like it ought to be a function? leaving it here because it seems
23
+ # like it might still come in handy
25
24
  task "read_package" do
26
25
  require "json"
27
26
  string = File.read("package.json")
@@ -29,24 +28,3 @@ task "read_package" do
29
28
  end
30
29
 
31
30
 
32
-
33
- def package(options={})
34
- project_name, author = options.values_at(:project_name, :author)
35
- package = <<-TXT
36
- {
37
- "name": "#{project_name}",
38
- "description": "A new project, a nascent bundle of win, whose author hasn't described it yet.",
39
- "author": "#{author}",
40
- "version": "0.1.0",
41
- "main": "./lib/#{project_name}.js",
42
- "files": [
43
- "lib"
44
- ],
45
- "dependencies": {
46
- },
47
- "devDependencies": {
48
- }
49
- }
50
- TXT
51
- end
52
-
@@ -9,13 +9,10 @@ $STARTER[:directory] = File.basename(Dir.pwd)
9
9
 
10
10
  # Interface task declarations
11
11
 
12
- desc "Bootstrap your project"
13
- task "bootstrap" => "determine_author"
14
-
15
- desc "Build everything that needs building"
12
+ #desc "Build everything that needs building"
16
13
  task "build"
17
14
 
18
- desc "Release the dogs that shoot bees from their mouths"
15
+ #desc "Release the dogs that shoot bees from their mouths"
19
16
  task "release" => %w[ build ]
20
17
 
21
18
  directory ".starter"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: git
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: ghee
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
14
46
  description:
15
47
  email:
16
48
  executables: []
@@ -55,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
87
  version: '0'
56
88
  requirements: []
57
89
  rubyforge_project:
58
- rubygems_version: 1.8.23
90
+ rubygems_version: 1.8.24
59
91
  signing_key:
60
92
  specification_version: 3
61
93
  summary: Generally useful and reusable things