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 +4 -4
- data/ImlRobolectricity.gemspec +1 -1
- data/README.md +9 -12
- data/bin/robolectrify +2 -0
- data/lib/ImlRobolectricity.rb +1 -1
- data/lib/ImlRobolectricity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43f45774edb07ee9b11324ed801d2cefd859c152
|
4
|
+
data.tar.gz: 15030c2e0eb1eba1c8045c10896d1c8b6246a86d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499bebf8ecc3a4abca346385c276b69da32847d8bcfa8dc1a977c4be3444dbc4cecfc710d5ff1be511dc11969af1dc76deb749180ef6df57add45fae960d67a2
|
7
|
+
data.tar.gz: 8fd82bb3a24e9b8bd4cc07f2beb4077c59fdfed50b7f3332cf8fb537798e05cca1851a291b3971875315fe7282aaf525b146a2a0303e27eddd7095ad67a3f028
|
data/ImlRobolectricity.gemspec
CHANGED
@@ -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
|
-
|
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
|
-
|
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
data/lib/ImlRobolectricity.rb
CHANGED
@@ -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'].
|
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
|
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.
|
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
|
+
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: {}
|