proteus-kits 0.0.3 → 0.0.4.1

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: a1f7548324226a8a91d9b3b13c42e403a52a92d8
4
- data.tar.gz: 52b92010ab54d71c5ef2a9fa10d55f5d723e79fd
3
+ metadata.gz: 437a80911ebb6ea3fbc2546e1c10f39049837d88
4
+ data.tar.gz: 50b760cb3d4db0aff8a50ede7114f236c5be7ced
5
5
  SHA512:
6
- metadata.gz: 83bbdb51e00171038d3fb1205de4d2efe3042dbbe757fe5edb5155ef064a1e260bad60653cdc0e1f98c2a49d6a1fd6fdf5c9ff862159dcd6f61a23774c9ab63e
7
- data.tar.gz: 1f442e25b29c0e4bbc3d688beee977174d6ea84d03ec9f159fa54f749df4b6fc808ff29b0f56cf4bff82ef112e4bf4284be9802e1519bb0d38c1096b21663341
6
+ metadata.gz: a2df4795ccaa8faa53ced3a459c2b512e1a2e6c4e47cfb9d4bc946440ca254b0cd15aebd390966be98147316c6d77b00f53c1468e26950f93877752e4944e428
7
+ data.tar.gz: 7ede4b6a81f1d3ceefa8e42ea8d5b8ff2bf2723238e46ba446bd653a4042fce56ae51dc083d998f80458337f0406448f4f334e801f0e23a79a7b87124c27356a
data/README.md CHANGED
@@ -16,7 +16,7 @@ favorite front end tools.
16
16
  Just run this to install it:
17
17
 
18
18
  ```
19
- gem install proteus
19
+ gem install proteus-kits
20
20
  ```
21
21
 
22
22
  Then pick the project you want to start (i.e. Middleman)
data/Rakefile CHANGED
@@ -1,2 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
2
3
 
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
7
+ task :test => :spec
File without changes
@@ -13,8 +13,13 @@ module Proteus
13
13
  desc "new", "runs the command to clone a particular kit"
14
14
  def new(kit_name, repo_name = nil)
15
15
  repo_name ||= kit_name
16
- puts "Starting a new proteus-#{kit_name} project in #{repo_name}"
17
- system "git clone #{url(kit_name)}#{' ' + repo_name}"
16
+
17
+ if system "git ls-remote #{url(kit_name)} #{repo_name} > /dev/null 2>&1"
18
+ puts "Starting a new proteus-#{kit_name} project in #{repo_name}"
19
+ system "git clone #{url(kit_name)}#{' ' + repo_name}"
20
+ else
21
+ puts "A thoughtbot repo doesn't exist with that name"
22
+ end
18
23
  end
19
24
 
20
25
  desc "setup", "Sets up the project"
@@ -1,3 +1,3 @@
1
1
  module Proteus
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4.1"
3
3
  end
@@ -9,4 +9,8 @@ describe Proteus do
9
9
  url = @proteus.url("test")
10
10
  expect(url).to eq("git@github.com:thoughtbot/proteus-test.git")
11
11
  end
12
+
13
+ it "returns a friendly message if the repo doesn't exist" do
14
+ expect(@proteus.new('invalid')).to eq("A thoughtbot repo doesn't exist with that name")
15
+ end
12
16
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proteus-kits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Ogle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
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: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
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: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.6'
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: '2.6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
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'
69
69
  description: A collection of useful starter kits to help you prototype faster
@@ -74,7 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
77
+ - ".gitignore"
78
78
  - Gemfile
79
79
  - Gemfile.lock
80
80
  - LICENSE.txt
@@ -97,17 +97,17 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.0.14
110
+ rubygems_version: 2.4.3
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Starter kits to help you prototype faster