objc-referee 0.3.0 → 1.0.0

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: ab33621de6d2c048a7941e38fc2829ef73f41ba2
4
- data.tar.gz: 87c5d7583369eaa5c8ff4644025d737751e51f62
3
+ metadata.gz: 1f980a5a49f93ba56eed3a9086fa07a860032522
4
+ data.tar.gz: c4357a81d5dcd1cb8892232079162823bcfededc
5
5
  SHA512:
6
- metadata.gz: af7c0a621f8d1eb67f329824f03bb3df95c9f2fa95060a9225702c1a61cfed8baa473eb1cace69d1efbc0022425883f2fdeb00d4044d602a7ba602f8e2d82423
7
- data.tar.gz: f4abbde63f073771b68d3ca791c893504cc45d2b8326ac0a7e328f327feca811a7a43ba5529f8af0479d4c353385d70e58bf5a16502aafa5b8ecaedce081d802
6
+ metadata.gz: 2b7ded8158ac45d3c2787e421baa15d026fe94aa9d652f5ee894c997dcf2c3e12ade39b621d10d6adb57624c59e8e69d912de4d77a22dde6b08c269e2f14baf8
7
+ data.tar.gz: d371a3b1337b969383a1e8a454b38438d3cd5f1ecef5675c94a98a8133706c7a4639667625d3ea2434e0cbf80d036f28ed404780a5d2056ee0b79b9aabc03e96
@@ -1,14 +1,11 @@
1
- sudo: false
2
- cache: bundler
1
+ os:
2
+ - osx
3
3
  language: ruby
4
+ cache: bundler
4
5
  rvm:
5
- - 2.0
6
- - 2.1
7
- - 2.2
8
- - 2.3
9
- before_install: gem update --remote bundler
10
- install:
11
- - bundle install --retry=3
6
+ - 2.0.0
7
+ - 2.1.2
8
+ - 2.1.3
12
9
  script:
13
10
  - bundle exec rspec
14
- - bundle exec rubocop
11
+ - bundle exec rubocop lib exe objc-referee.gemspec spec
@@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/) and this file attempts to follow the guidelines provided by [Keep a CHANGELOG](http://keepachangelog.com/).
4
4
 
5
5
  ## [Unreleased]
6
- TODO
6
+ TODO.
7
+
8
+ ## [1.0.0] - 2016-03-21
9
+ ### Changed
10
+ - **Breaking change:** View controller accessors are now prefixed with `new`.
7
11
 
8
12
  ## [0.3.0] - 2016-03-08
9
13
  ### Added
@@ -41,7 +45,8 @@ TODO
41
45
  ## [0.1.1] - 2015-09-02
42
46
  Initial public release.
43
47
 
44
- [unreleased]: https://github.com/dynamit/referee/compare/v0.3.0...HEAD
48
+ [unreleased]: https://github.com/dynamit/referee/compare/v1.0.0...HEAD
49
+ [1.0.0]: https://github.com/Dynamit/referee/tree/v1.0.0
45
50
  [0.3.0]: https://github.com/Dynamit/referee/tree/v0.3.0
46
51
  [0.2.4]: https://github.com/Dynamit/referee/tree/v0.2.4
47
52
  [0.2.3]: https://github.com/Dynamit/referee/tree/v0.2.3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- objc-referee (0.2.4)
4
+ objc-referee (0.3.0)
5
5
  mustache (~> 1.0, >= 1.0.2)
6
6
  nokogiri (~> 1.6, >= 1.6.6.2)
7
7
  xcodeproj (~> 0.20.1)
@@ -9,36 +9,36 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (4.2.5)
12
+ activesupport (4.2.6)
13
13
  i18n (~> 0.7)
14
14
  json (~> 1.7, >= 1.7.7)
15
15
  minitest (~> 5.1)
16
16
  thread_safe (~> 0.3, >= 0.3.4)
17
17
  tzinfo (~> 1.1)
18
- ast (2.1.0)
18
+ ast (2.2.0)
19
19
  astrolabe (1.3.1)
20
20
  parser (~> 2.2)
21
- coderay (1.1.0)
21
+ coderay (1.1.1)
22
22
  colored (1.2)
23
23
  diff-lcs (1.2.5)
24
24
  i18n (0.7.0)
25
25
  json (1.8.3)
26
26
  method_source (0.8.2)
27
27
  mini_portile2 (2.0.0)
28
- minitest (5.8.3)
28
+ minitest (5.8.4)
29
29
  mustache (1.0.2)
30
- nokogiri (1.6.7.1)
30
+ nokogiri (1.6.7.2)
31
31
  mini_portile2 (~> 2.0.0.rc2)
32
- parser (2.2.2.6)
33
- ast (>= 1.1, < 3.0)
32
+ parser (2.3.0.6)
33
+ ast (~> 2.2)
34
34
  powerpack (0.1.1)
35
- pry (0.10.1)
35
+ pry (0.10.3)
36
36
  coderay (~> 1.1.0)
37
37
  method_source (~> 0.8.1)
38
38
  slop (~> 3.4)
39
- rainbow (2.0.0)
40
- rake (10.4.2)
41
- rspec-core (3.4.1)
39
+ rainbow (2.1.0)
40
+ rake (10.5.0)
41
+ rspec-core (3.4.3)
42
42
  rspec-support (~> 3.4.0)
43
43
  rspec-expectations (3.4.0)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
@@ -12,15 +12,19 @@ module Referee
12
12
  @config = config
13
13
  end
14
14
 
15
+ def method_name
16
+ "new#{@name}"
17
+ end
18
+
15
19
  def declaration
16
- simple_method_declaration @name
20
+ simple_method_declaration method_name
17
21
  end
18
22
 
19
23
  def implementation
20
24
  bundle = bundle_accessor(@config.bundle_id)
21
25
  body = "(#{@type})[[UIStoryboard storyboardWithName:@\"#{@storyboard}\" bundle:#{bundle}] " \
22
26
  "instantiateViewControllerWithIdentifier:@\"#{@name}\"]"
23
- simple_method_implementation @name, body
27
+ simple_method_implementation method_name, body
24
28
  end
25
29
 
26
30
  def swift_implementation
@@ -34,7 +38,7 @@ module Referee
34
38
 
35
39
  body = "UIStoryboard(name: \"#{@storyboard}\", bundle: #{bundle})." \
36
40
  "instantiateViewControllerWithIdentifier(\"#{@name}\")#{cast}"
37
- simple_swift_method @name, body
41
+ simple_swift_method method_name, body
38
42
  end
39
43
  end
40
44
  end
@@ -1,4 +1,4 @@
1
1
  # Version information.
2
2
  module Referee
3
- VERSION = '0.3.0'
3
+ VERSION = '1.0.0'
4
4
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'rspec-expectations', '~> 3.4'
32
32
  spec.add_development_dependency 'rspec-mocks', '~> 3.4'
33
33
 
34
- spec.add_runtime_dependency 'xcodeproj', '~> 0.20.1'
35
- spec.add_runtime_dependency 'mustache', '~> 1.0', '>= 1.0.2'
36
- spec.add_runtime_dependency 'nokogiri', '~> 1.6', '>= 1.6.6.2'
34
+ spec.add_dependency 'xcodeproj', '~> 0.20.1'
35
+ spec.add_dependency 'mustache', '~> 1.0', '>= 1.0.2'
36
+ spec.add_dependency 'nokogiri', '~> 1.6', '>= 1.6.6.2'
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objc-referee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Drake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-08 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler