orly 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bc910b8d906c970c04c70d29c1b9a307332521d
4
- data.tar.gz: 359653fee062723911ce8015de0117b9f1431bfd
3
+ metadata.gz: 0231cbe1cc18bf754325fab3a20ef8165c6fd469
4
+ data.tar.gz: d01fda3f68e0913265ca052e590324c6351a7386
5
5
  SHA512:
6
- metadata.gz: f59cabcc5d70f3277c4203a27ef8010f5d126ee79b86659d2d8532afdd87040eadb58405925dcf96c20fc88582ee1dee8dcd07b62edf6de58484a31a7f9faa71
7
- data.tar.gz: 10e4a1de1ff2a7fe47905d362dd9b44f06110513772d24c1fe35b9832edc1421c516495770162f08f156f4aafe17ab02d541a71dd68c7aa9fa7a188408593680
6
+ metadata.gz: 9f1924449a8c38e7fbe7af11b1ddc47c11650fe57d8ad96315306e083e05f32f53f81ed83d7f0d8b2abc7e5c70b5f813a1dab6a78a1ef81b61a25cc454428842
7
+ data.tar.gz: 850af32171776f36d1e9cb75312bfeb56f91ca418cf3a3347a259266c42bb408adc30b0ddce958c2f4e7b10f9ac50a6757d17e00cfbfba4dc0b64753d21f619b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.0.10
2
+ * Added Bower support (@lorcan)
3
+
1
4
  # v0.0.9
2
5
  * Added NPM support for all the Node.JS fans out there. (@giladgo)
3
6
 
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Yonatan Bergman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Readme.md CHANGED
@@ -1,7 +1,7 @@
1
- # O RLY ![O RLY owl](https://dl.dropbox.com/u/7525692/orly.png)
1
+ ![ORLY](images/orly.png)
2
+ # ORLY
2
3
 
3
- A tool that lets you know when you need to run `bundle install` or `rake db:migrate`
4
- New a ORLY now works with `Podfile` as well
4
+ A tool that lets you know when you need to run development commands
5
5
 
6
6
  ## Installation
7
7
 
@@ -15,9 +15,24 @@ and install O RLY in each Git Repo
15
15
 
16
16
  To remove O RLY just run `orly --uninstall` inside the git repo.
17
17
 
18
+ ## Supported Commands
19
+
20
+ ORLY supports the following development commands and knows to alert you when you need to run them
21
+
22
+ #### Ruby / Rails
23
+ * `bundle install` - for Gemfile.lock changes
24
+ * `rake db:migrate` - for db/migration changes
25
+
26
+ #### iOS
27
+ * `pod install` - for Podfile.lock changes
28
+
29
+ #### NPM / Bower
30
+ * `npm install` - for package.json changes
31
+ * `bower install` - for bower.json changes
32
+
18
33
  ## More info
19
34
 
20
35
  In the Github page https://github.com/yonbergman/orly/
21
36
 
22
37
  ---
23
- Copyright (c) 2012-2014 Yonatan Bergman, released under the MIT license
38
+ Copyright (c) 2015 Yonatan Bergman, released under the MIT license
data/images/orly.png ADDED
Binary file
data/lib/orly.rb CHANGED
@@ -13,6 +13,7 @@ module Orly
13
13
  notify << "run 'bundle install'".red if tester.need_bundle_install?
14
14
  notify << "run 'rake db:migrate'".red if tester.need_migrate?
15
15
  notify << "run 'pod install'".blue if tester.need_pod?
16
+ notify << "run 'bower install'".green if tester.need_bower?
16
17
  notify << "run 'npm install'".green if tester.need_npm?
17
18
  Orly::OwlPrinter.print(notify) unless notify.empty?
18
19
  rescue Orly::NoRepo
data/lib/orly/tester.rb CHANGED
@@ -8,6 +8,7 @@ module Orly
8
8
  def initialize
9
9
  @need_bundle = false
10
10
  @need_migrate = false
11
+ @need_bower = false
11
12
  @need_npm = false
12
13
  run_tests
13
14
  rescue ArgumentError
@@ -20,6 +21,7 @@ module Orly
20
21
  when /^Gemfile/ then @need_bundle = true
21
22
  when /^db\/migrate/ then @need_migrate = true
22
23
  when /^Podfile/ then @need_pod = true
24
+ when /^bower\.json/ then @need_bower = true
23
25
  when /^package\.json/ then @need_npm = true
24
26
  end
25
27
  end
@@ -44,6 +46,10 @@ module Orly
44
46
  @need_pod
45
47
  end
46
48
 
49
+ def need_bower?
50
+ @need_bower
51
+ end
52
+
47
53
  def need_npm?
48
54
  @need_npm
49
55
  end
data/lib/orly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Orly
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/orly.gemspec CHANGED
@@ -6,9 +6,10 @@ Gem::Specification.new do |s|
6
6
  s.name = "orly"
7
7
  s.version = Orly::VERSION
8
8
  s.authors = ["yon"]
9
- s.email = ["yonatanbergman@gmail.com"]
9
+ s.email = ["yonbergman@gmail.com"]
10
+ s.licenses = ['MIT']
10
11
  s.homepage = "http://github.com/yonbergman/orly"
11
- s.summary = %q{Tells you when you need to run `bundle install` or `rake db:migrate`}
12
+ s.summary = %q{Tells you when you need to run `bundle install`, `rake db:migrate`, `pod install`, `npm`, `bower install` }
12
13
  s.description = %q{Install a post-merge hook for git that tells you when the Gemfile changed or a migration was added}
13
14
 
14
15
  s.rubyforge_project = "orly"
metadata CHANGED
@@ -1,71 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - yon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
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: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: choice
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
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: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colored
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
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: '0'
55
55
  description: Install a post-merge hook for git that tells you when the Gemfile changed
56
56
  or a migration was added
57
57
  email:
58
- - yonatanbergman@gmail.com
58
+ - yonbergman@gmail.com
59
59
  executables:
60
60
  - orly
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
64
+ - ".gitignore"
65
65
  - CHANGELOG.md
66
66
  - Gemfile
67
+ - LICENSE
67
68
  - Readme.md
68
69
  - bin/orly
70
+ - images/orly.png
69
71
  - lib/orly.rb
70
72
  - lib/orly/installation.rb
71
73
  - lib/orly/owl_printer.rb
@@ -73,7 +75,8 @@ files:
73
75
  - lib/orly/version.rb
74
76
  - orly.gemspec
75
77
  homepage: http://github.com/yonbergman/orly
76
- licenses: []
78
+ licenses:
79
+ - MIT
77
80
  metadata: {}
78
81
  post_install_message:
79
82
  rdoc_options: []
@@ -81,19 +84,19 @@ require_paths:
81
84
  - lib
82
85
  required_ruby_version: !ruby/object:Gem::Requirement
83
86
  requirements:
84
- - - '>='
87
+ - - ">="
85
88
  - !ruby/object:Gem::Version
86
89
  version: '0'
87
90
  required_rubygems_version: !ruby/object:Gem::Requirement
88
91
  requirements:
89
- - - '>='
92
+ - - ">="
90
93
  - !ruby/object:Gem::Version
91
94
  version: '0'
92
95
  requirements: []
93
96
  rubyforge_project: orly
94
- rubygems_version: 2.0.14
97
+ rubygems_version: 2.5.1
95
98
  signing_key:
96
99
  specification_version: 4
97
- summary: Tells you when you need to run `bundle install` or `rake db:migrate`
100
+ summary: Tells you when you need to run `bundle install`, `rake db:migrate`, `pod
101
+ install`, `npm`, `bower install`
98
102
  test_files: []
99
- has_rdoc: