ImlRobolectricity 0.0.1 → 0.0.3

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: e7872c2f19b60e9e7a7ffc86c68e5c4389387a63
4
- data.tar.gz: 59e75917ddd9cd419a6e0939baa26b09e307c491
3
+ metadata.gz: 43f45774edb07ee9b11324ed801d2cefd859c152
4
+ data.tar.gz: 15030c2e0eb1eba1c8045c10896d1c8b6246a86d
5
5
  SHA512:
6
- metadata.gz: fe9b910abde4825302edce3a9bb15fbf27ebacb12f650980ab432661e197f073ec6688bf52a2f29bbb25e2daf9d6495192460e885b424a26d8c25bd8cacf28e1
7
- data.tar.gz: 1cb45c69ac300dbbacc175ffa3326d402946911dd9186535221f965141bdf46055d3a0546f6c9e542b6fc88c26bc7ed3ec5866522ec7686524c231986477cd7d
6
+ metadata.gz: 499bebf8ecc3a4abca346385c276b69da32847d8bcfa8dc1a977c4be3444dbc4cecfc710d5ff1be511dc11969af1dc76deb749180ef6df57add45fae960d67a2
7
+ data.tar.gz: 8fd82bb3a24e9b8bd4cc07f2beb4077c59fdfed50b7f3332cf8fb537798e05cca1851a291b3971875315fe7282aaf525b146a2a0303e27eddd7095ad67a3f028
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["inkspotch@gmail.com"]
11
11
  spec.description = %q{Fix IntelliJ's .iml files to allow Robolectric to run}
12
12
  spec.summary = %q{Run Robolectric tests in IntelliJ}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/inkspotch/ImlRobolectricity"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split("\n")
data/README.md CHANGED
@@ -1,24 +1,21 @@
1
1
  # ImlRobolectricity
2
2
 
3
- TODO: Write a gem description
3
+ Script to fix IntelliJ's .iml files so Robolectric tests run.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'ImlRobolectricity'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
7
  $ gem install ImlRobolectricity
18
8
 
19
9
  ## Usage
20
10
 
21
- TODO: Write usage instructions here
11
+ Must be ran each time IntelliJ syncs with Gradle and overwrites the .iml files.
12
+
13
+ Run 'robolectrify' from the directory of your project.
14
+
15
+ cd androidProject
16
+ robolectrify
17
+
18
+ It will print the .iml file, steps it's taking and if it was successful or not.
22
19
 
23
20
  ## Contributing
24
21
 
data/bin/robolectrify CHANGED
@@ -8,6 +8,8 @@ rescue LoadError
8
8
  require 'ImlRobolectricity'
9
9
  end
10
10
 
11
+ puts ImlRobolectricity::VERSION
12
+
11
13
  iml_files = []
12
14
  Find.find('./') do |path|
13
15
  iml_files << path if path =~ /.*\.iml$/
@@ -35,7 +35,7 @@ module ImlRobolectricity
35
35
  test_output = iml_xml.search('output-test').first
36
36
  if test_output.nil?
37
37
  test_output = Nokogiri::XML::Node.new('output-test', iml_xml)
38
- test_output['url'] = output['url'].sub('classes/debug', 'test-classes')
38
+ test_output['url'] = output['url'].gsub(/classes\/.*$/, 'test-classes')
39
39
  output.after test_output
40
40
  puts 'Test output directory set.'
41
41
  else
@@ -1,3 +1,3 @@
1
1
  module ImlRobolectricity
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ImlRobolectricity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Holmes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,7 @@ files:
69
69
  - bin/robolectrify
70
70
  - lib/ImlRobolectricity.rb
71
71
  - lib/ImlRobolectricity/version.rb
72
- homepage: ''
72
+ homepage: https://github.com/inkspotch/ImlRobolectricity
73
73
  licenses:
74
74
  - MIT
75
75
  metadata: {}