mactag 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,9 +24,15 @@ Install the gem:
24
24
 
25
25
  $ gem install mactag
26
26
 
27
- Add `mactag` to the `Gemfile`:
27
+ Add `mactag` to the `Gemfile` (add to development group in Rails):
28
28
 
29
+ # Ruby gem
29
30
  gem 'mactag'
31
+
32
+ # Rails app
33
+ group :development do
34
+ gem 'mactag'
35
+ end
30
36
 
31
37
  Then run `bundle install`.
32
38
 
data/bin/mactag CHANGED
@@ -1,9 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'fileutils'
4
-
5
3
  if ARGV.include?('-h') || ARGV.include?('--help') || ARGV.include?('help')
6
- $stderr.puts 'Usage: mactag [new] [configuration_file]'
4
+ puts 'Usage: mactag [new] [configuration_file]'
7
5
  else
8
6
  default_config_file = File.join('config', 'mactag.rb')
9
7
 
@@ -7,6 +7,8 @@ require 'mactag/bundler'
7
7
  require 'mactag/errors'
8
8
 
9
9
  module Mactag
10
+ autoload :Bundler, 'bundler'
11
+
10
12
  class << self
11
13
  def configure(&block)
12
14
  Mactag::Config.configure(&block)
@@ -29,8 +31,8 @@ module Mactag
29
31
  ENV['PWD']
30
32
  end
31
33
  end
32
-
33
- def current_project
34
+
35
+ def project_name
34
36
  File.basename(project_root)
35
37
  end
36
38
  end
@@ -39,7 +41,3 @@ end
39
41
  def Mactag(&block)
40
42
  Mactag::Builder.generate(&block)
41
43
  end
42
-
43
- if Mactag.rails_app?
44
- require 'mactag/railtie'
45
- end
@@ -1,5 +1,3 @@
1
- require 'bundler'
2
-
3
1
  module Mactag
4
2
  ##
5
3
  #
@@ -28,13 +26,15 @@ module Mactag
28
26
  default = runtime.dependencies.select { |dependency|
29
27
  dependency.groups.include?(:default)
30
28
  }.map(&:name)
29
+
31
30
  if Mactag.rails_app?
32
31
  default.delete('rails')
33
32
  else
34
- if project = Mactag.current_project
33
+ if project = Mactag.project_name
35
34
  default.delete(project)
36
35
  end
37
36
  end
37
+
38
38
  default
39
39
  end
40
40
 
@@ -13,7 +13,7 @@ describe Mactag do
13
13
  Mactag.should respond_to(:project_root)
14
14
  end
15
15
 
16
- it 'should respond to #current_project' do
17
- Mactag.should respond_to(:current_project)
16
+ it 'should respond to #project_name' do
17
+ Mactag.should respond_to(:project_name)
18
18
  end
19
19
  end
@@ -1,8 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rspec'
3
-
4
3
  require 'mactag'
5
-
6
4
  require 'matcher'
7
5
 
8
6
  RSpec.configure do |config|
metadata CHANGED
@@ -1,88 +1,68 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mactag
3
- version: !ruby/object:Gem::Version
4
- hash: 3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 0
10
- version: 0.7.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Johan Andersson
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-02-06 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-02-06 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156967580 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 13
29
- segments:
30
- - 2
31
- - 7
32
- version: "2.7"
20
+ - !ruby/object:Gem::Version
21
+ version: '2.7'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: yard
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156967580
25
+ - !ruby/object:Gem::Dependency
26
+ name: yard
27
+ requirement: &2156967180 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
47
33
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: redcarpet
51
34
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2156967180
36
+ - !ruby/object:Gem::Dependency
37
+ name: redcarpet
38
+ requirement: &2156966720 !ruby/object:Gem::Requirement
53
39
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
61
44
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: rake
65
45
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2156966720
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &2156966300 !ruby/object:Gem::Requirement
67
50
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
75
55
  type: :development
76
- version_requirements: *id004
56
+ prerelease: false
57
+ version_requirements: *2156966300
77
58
  description: Mactag is a DSL to create Ctags files for Ruby/Rails
78
59
  email: johan.rejeep@gmail.com
79
- executables:
60
+ executables:
80
61
  - mactag
81
62
  extensions: []
82
-
83
- extra_rdoc_files:
63
+ extra_rdoc_files:
84
64
  - README.markdown
85
- files:
65
+ files:
86
66
  - README.markdown
87
67
  - Rakefile
88
68
  - VERSION
@@ -93,7 +73,6 @@ files:
93
73
  - lib/mactag/ctags.rb
94
74
  - lib/mactag/dsl.rb
95
75
  - lib/mactag/errors.rb
96
- - lib/mactag/railtie.rb
97
76
  - lib/mactag/indexer.rb
98
77
  - lib/mactag/indexer/app.rb
99
78
  - lib/mactag/indexer/gem.rb
@@ -121,38 +100,29 @@ files:
121
100
  - bin/mactag
122
101
  homepage: http://github.com/rejeep/mactag
123
102
  licenses: []
124
-
125
103
  post_install_message:
126
104
  rdoc_options: []
127
-
128
- require_paths:
105
+ require_paths:
129
106
  - lib
130
- required_ruby_version: !ruby/object:Gem::Requirement
107
+ required_ruby_version: !ruby/object:Gem::Requirement
131
108
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- hash: 3
136
- segments:
137
- - 0
138
- version: "0"
139
- required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
114
  none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
146
- - 0
147
- version: "0"
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
148
119
  requirements: []
149
-
150
120
  rubyforge_project:
151
- rubygems_version: 1.8.15
121
+ rubygems_version: 1.8.10
152
122
  signing_key:
153
123
  specification_version: 3
154
124
  summary: Ctags for Ruby/Rails
155
- test_files:
125
+ test_files:
156
126
  - spec/mactag/builder_spec.rb
157
127
  - spec/mactag/bundler_spec.rb
158
128
  - spec/mactag/config_spec.rb
@@ -1,7 +0,0 @@
1
- module Mactag
2
- class Railtie < Rails::Railtie
3
- rake_tasks do
4
- load 'tasks/mactag.rake'
5
- end
6
- end
7
- end