orly 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d9532803b552cf9f04c7bee4d567d8472de41ed2
4
+ data.tar.gz: 5c3b1046949f207202af01657efa3c7d7fa7be2b
5
+ SHA512:
6
+ metadata.gz: d4f4dc00a7a720473d4e1b907c29d5cbd1b8fb4b241998dc52dcc429fcb84a72969e61360779ff20925a826ac5f9c650e0aa0d6751f3dec14d914b1206eccf5e
7
+ data.tar.gz: 4b6a291cc39688f8bf34a781eec26f6b7f04b83a0bce964b897263e959f239ad64d592fbdf265b7e05de90e73f99413251035591f0fa37addc38d85fa24bad01
@@ -1,3 +1,6 @@
1
+ # v0.0.7
2
+ * Added support for Pod files
3
+
1
4
  # v0.0.6
2
5
  * Changed order to be bundle then migrate
3
6
 
data/Readme.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # O RLY ![O RLY owl](https://dl.dropbox.com/u/7525692/orly.png)
2
2
 
3
- A tool that lets you know when you need to run `bundle install` or `rake db:migrate`
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
5
 
5
6
  ## Installation
6
7
 
@@ -19,4 +20,4 @@ To remove O RLY just run `orly --uninstall` inside the git repo.
19
20
  In the Github page https://github.com/yonbergman/orly/
20
21
 
21
22
  ---
22
- Copyright (c) 2012 Yonatan Bergman, released under the MIT license
23
+ Copyright (c) 2012-2014 Yonatan Bergman, released under the MIT license
data/bin/orly CHANGED
@@ -11,7 +11,7 @@ include Orly
11
11
 
12
12
  Choice.options do
13
13
 
14
- header "Orly notifies you whenever you pull an update that requires 'bundle install' or 'rake db:migrate'"
14
+ header "Orly notifies you whenever you pull an update that requires 'bundle install', 'rake db:migrate' or 'pod install'"
15
15
 
16
16
  option :install do
17
17
  short '-i'
@@ -44,6 +44,15 @@ Choice.options do
44
44
  end
45
45
  end
46
46
 
47
+ option :version do
48
+ short '-v'
49
+ long "--version"
50
+ desc "check orly's version"
51
+ action do
52
+ Orly::OwlPrinter.print(["Version: #{Orly::VERSION.to_s.green}"])
53
+ end
54
+ end
55
+
47
56
  end
48
57
 
49
58
  Choice.help if Choice.choices.empty?
@@ -12,10 +12,10 @@ module Orly
12
12
  notify = []
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
+ notify << "run 'pod install'".blue if tester.need_pod?
15
16
  Orly::OwlPrinter.print(notify) unless notify.empty?
16
17
  rescue Orly::NoRepo
17
18
  puts "O RLY: this is not a git repo".red
18
19
  end
19
20
 
20
-
21
21
  end
@@ -15,10 +15,10 @@ module Orly
15
15
 
16
16
  def run_tests
17
17
  get_diff.each do |file|
18
- if file.path =~ /^Gemfile/
19
- @need_bundle = true
20
- elsif file.path =~ /^db\/migrate/
21
- @need_migrate = true
18
+ case(file)
19
+ when /^Gemfile/ then @need_bundle = true
20
+ when /^db\/migrate/ then @need_migrate = true
21
+ when /^Podfile/ then @need_pod = true
22
22
  end
23
23
  end
24
24
  rescue Git::GitExecuteError
@@ -37,5 +37,9 @@ module Orly
37
37
  def need_bundle_install?
38
38
  @need_bundle
39
39
  end
40
+
41
+ def need_pod?
42
+ @need_pod
43
+ end
40
44
  end
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module Orly
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,74 +1,66 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: orly
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - yon
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-07-22 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2013-09-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: git
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: choice
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: choice
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
46
34
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: colored
50
35
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: colored
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
60
48
  type: :runtime
61
- version_requirements: *id003
62
- description: Install a post-merge hook for git that tells you when the Gemfile changed or a migration was added
63
- email:
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Install a post-merge hook for git that tells you when the Gemfile changed
56
+ or a migration was added
57
+ email:
64
58
  - yonatanbergman@gmail.com
65
- executables:
59
+ executables:
66
60
  - orly
67
61
  extensions: []
68
-
69
62
  extra_rdoc_files: []
70
-
71
- files:
63
+ files:
72
64
  - .gitignore
73
65
  - CHANGELOG.md
74
66
  - Gemfile
@@ -82,36 +74,25 @@ files:
82
74
  - orly.gemspec
83
75
  homepage: http://github.com/yonbergman/orly
84
76
  licenses: []
85
-
77
+ metadata: {}
86
78
  post_install_message:
87
79
  rdoc_options: []
88
-
89
- require_paths:
80
+ require_paths:
90
81
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
98
- - 0
99
- version: "0"
100
- required_rubygems_version: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
109
92
  requirements: []
110
-
111
93
  rubyforge_project: orly
112
- rubygems_version: 1.8.10
94
+ rubygems_version: 2.0.6
113
95
  signing_key:
114
- specification_version: 3
96
+ specification_version: 4
115
97
  summary: Tells you when you need to run `bundle install` or `rake db:migrate`
116
98
  test_files: []
117
-