swifty 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/swifty.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e3d1e549d974fb826859879bff5f3695c09b327
4
- data.tar.gz: 26637fb791b572a48cdc99cc05f83747147063d9
3
+ metadata.gz: 57a90997cc50119744038c19c113825e584ab9c1
4
+ data.tar.gz: 821bcd7a5de7e330c188eba9c38907a5c9ddabe3
5
5
  SHA512:
6
- metadata.gz: 644317e7fd674e219237dba4e843faf6b5c4191ba86a5390de8daf9437fea65aa87171f239f4ac1dcfbc4ec018e556adb5f66b4bcd6552f65494719c50f59acc
7
- data.tar.gz: dba239806de91c5936542a4a3c54b7e2aacd91beac1f8f4b3d52ca045f53becffe651ce0d9719bd2d22404fce3752b6c3fa0df0da134c11e03141b9c13fd4ecc
6
+ metadata.gz: 857a4322c5b5a1b6f167fe6ef96a096a7951887b51280bee228503d32d9ba2ed595b38a7d8224c92660db34a95d73440c15cd93e5c31a82e8599a6feed00f540
7
+ data.tar.gz: 92d9a8da48ba2882b26bd007a7bc42f8fc2e7bb3f8ab55a4bc1c6efef11e6923c3448aab56abd8d28a91955a7c808cf748d81a37de2329c60984e1e8eeea36af
@@ -57,6 +57,11 @@ class Swifty
57
57
  end
58
58
  alias_method :to_yml, :to_yaml
59
59
 
60
+ def save(file)
61
+ File.open(file, 'w+') { |f| f.write to_yaml }
62
+ to_hash
63
+ end
64
+
60
65
  private
61
66
 
62
67
  def method_missing(name, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swifty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kampp
@@ -73,7 +73,7 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - lib/swifty.rb
76
- homepage: http://rubygems.org/gems/swifty
76
+ homepage: https://github.com/Inpay-Services/swifty
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}