dependencyswapper 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/README.md +1 -1
- data/lib/dependencyswapper/DependencyReplacer.rb +14 -0
- data/lib/dependencyswapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f495ba74a166712c4e429d97ba6f447ae1e41d
|
4
|
+
data.tar.gz: 3c27dce69a76328621e128df0d21718916c006df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67ce79a17fb122e3cf953cb31cea454651b0a614aaebdbb252274116b3f00051c606fee7239d8240125d16a57f317ace48633e156ab49846b050ad55cd045d8c
|
7
|
+
data.tar.gz: 2961519d8ff40b53c1cb99507844629d099553081d7f2082d64d888b75e522f07cd758ab22edd7ff5cf9f0716abf2c22f7a841d1e0c4cab3417aac74cdd1cb92
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.5.3] - 2017-10-28
|
10
|
+
### Fixed
|
11
|
+
- Fixed an issue where development pods would cause a crash.
|
12
|
+
|
13
|
+
## [0.5.2] - 2017-10-28
|
14
|
+
### Added
|
15
|
+
- Now dependencyswapper prints in console the directory where the development pod was installed.
|
16
|
+
|
9
17
|
## [0.5.1] - 2017-10-25
|
10
18
|
### Added
|
11
19
|
- Fix issue with install message
|
@@ -16,4 +24,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
16
24
|
- Added a CHANGELOG
|
17
25
|
|
18
26
|
[0.5.0]: https://github.com/pkrmf/dependencyswapper/tree/tag/v0.5.0
|
19
|
-
[0.5.1]: https://github.com/pkrmf/dependencyswapper/tree/tag/v0.5.
|
27
|
+
[0.5.1]: https://github.com/pkrmf/dependencyswapper/tree/tag/v0.5.1
|
28
|
+
[0.5.2]: https://github.com/pkrmf/dependencyswapper/tree/tag/v0.5.2
|
29
|
+
[0.5.3]: https://github.com/pkrmf/dependencyswapper/tree/tag/v0.5.3
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Whenever you want to swap environments on any of your dependencies, run `depswap
|
|
30
30
|
|
31
31
|
## Contributing
|
32
32
|
|
33
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pkrmf/dependencyswapper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
34
|
|
35
35
|
## License
|
36
36
|
|
@@ -71,6 +71,20 @@ module Dependency
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def dev
|
74
|
+
graph = Dependency::Graph.new({
|
75
|
+
:podfilelock_path => @podfile_path + ".lock"
|
76
|
+
})
|
77
|
+
pods = graph.generate()
|
78
|
+
|
79
|
+
#tag variable to store the version
|
80
|
+
tag = ""
|
81
|
+
|
82
|
+
pods.each { |pod|
|
83
|
+
if pod.name.eql? @dependency_name
|
84
|
+
tag = pod.version
|
85
|
+
end
|
86
|
+
}
|
87
|
+
|
74
88
|
file_lines = ''
|
75
89
|
IO.readlines(@podfile_path).each do |line|
|
76
90
|
file_lines += line unless line.include? "'" + dependency_name + "'"
|