dolarblue 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0e0e1e3e8e9d4f3ed37fcb0ed971b7274dea6b6
4
- data.tar.gz: acc380a786ccbfd4b6f237b9fd3586d68c8f1453
3
+ metadata.gz: 8da81e799823976c526474269b44fcd2e35bcf26
4
+ data.tar.gz: 852536ad4e2e7f309fddf1d294e3ab2e0a267d0d
5
5
  SHA512:
6
- metadata.gz: 4162109567aacac67a32a9e6538f03281914f57920f966e5c28c6e122dae7275ecfbe4291c174693963a938e5a15af4dad7d301dc64bc234aeb6d60fc98cc1f0
7
- data.tar.gz: df806af70e189d089105b04b385a9996a004faeb94e769f3e9b967c5a657cf417dc9f1b95b5782612b2650c23e78955df932a699e9882a9352289604242944b7
6
+ metadata.gz: 596dc122f503f536a36df0a072c9dbe73100cbd9e9279d1937ae5ec71c95acbd7c5c83df42dcf6bcdd8bb4790c2afc6f104cb70e7a1e902ce2e6ad7503d2a989
7
+ data.tar.gz: c9edd133e76cd181f60e9a7d4018a9a038cb2dafcdc6ac0d1881487fa152f7562256b3d1feae72212c171126e9f9611e9839ea3b75c6ebeb272874d01ba471f0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [In git](https://github.com/elgalu/dolarblue/compare/v0.2.0...HEAD)
1
+ ## [In git](https://github.com/elgalu/dolarblue/compare/v0.3.0...HEAD)
2
2
 
3
3
  ### New Features
4
4
  * n/a
@@ -9,6 +9,17 @@
9
9
  ### Chores
10
10
  * n/a
11
11
 
12
+ ## [v0.3.0](https://github.com/elgalu/dolarblue/tree/v0.3.0)
13
+
14
+ ### New Features
15
+ * Split method buy_sell_factor into 2: buy_sell_official_factor & buy_sell_blue_factor. (Leo Gallucci)
16
+
17
+ ### Bug Fixes
18
+ * n/a
19
+
20
+ ### Chores
21
+ * Changed word "ilegal" value for more polite "street" value. (Leo Gallucci)
22
+
12
23
  ## [v0.2.0](https://github.com/elgalu/dolarblue/tree/v0.2.0)
13
24
 
14
25
  ### New Features
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## Description
10
10
 
11
- Query Argentine Peso vs US$ exchange values with particular interest in official vs. ilegal (blue) reference prices.
11
+ Query Argentine Peso vs US$ exchange values with particular interest in official vs. street (blue) reference prices.
12
12
 
13
13
  [dolarblue][RubyGems] is a command-line tool to query AR$ vs US$ exchange values.
14
14
 
@@ -28,15 +28,15 @@ Sample result:
28
28
 
29
29
  Obtaining latest AR$ vs US$ exchange values...Done.
30
30
 
31
- - Official.......: 5.05 / 5.10 (Updated 28 minutes ago)
32
- - Dolar "Tarjeta": n/a / 6.12 (Updated 28 minutes ago)
33
- - Blue...........: 7.97 / 8.05 (Updated 4 hours and 43 minutes ago)
34
- - Gap "tarjeta"..: 32%
35
- - Gap (official).: 58%
31
+ - Official.......: 5.02 / 5.10 (Updated 2 hours ago)
32
+ - Dolar "Tarjeta": n/a / 6.12 (Updated 2 hours ago)
33
+ - Blue...........: 8.44 / 8.75 (Updated 2 hours and 33 minutes ago)
34
+ - Gap "tarjeta"..: 43%
35
+ - Gap (official).: 72%
36
36
 
37
37
  Information sources:
38
- Official.......: https://twitter.com/cotizacionhoyar/status/313730158597120001
39
- Blue...........: https://twitter.com/DolarBlue/status/313665928757927936
38
+ Official.......: https://twitter.com/cotizacionhoyar/status/314454371796660225
39
+ Blue...........: https://twitter.com/DolarBlue/status/314445874556190720
40
40
 
41
41
 
42
42
  ## Contributing
data/dolarblue.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.name = "dolarblue"
9
9
  spec.version = Dolarblue::VERSION
10
- spec.summary = %q{Query Argentine Peso vs US$ exchange values with particular interest in official vs. ilegal (blue) reference prices.}
10
+ spec.summary = %q{Query Argentine Peso vs US$ exchange values with particular interest in official vs. street (blue) reference prices.}
11
11
  spec.description = spec.summary
12
12
 
13
13
  spec.required_ruby_version = '>= 1.9.2'
@@ -6,12 +6,20 @@ class Dolarblue
6
6
  class Configuration
7
7
  include Singleton
8
8
 
9
- # Default gap factor between the sale value vs. the buy value
10
- # Usually 1%
9
+ # Default gap factor between the official sale value vs. the buy value
10
+ # Usually 1.5%
11
11
  #
12
12
  # @return [Float] the percentile between 0..1
13
- def buy_sell_factor
14
- Float(0.99)
13
+ def buy_sell_official_factor
14
+ Float(0.985)
15
+ end
16
+
17
+ # Default gap factor between the blue sale value vs. the buy value
18
+ # Usually 4.5%
19
+ #
20
+ # @return [Float] the percentile between 0..1
21
+ def buy_sell_blue_factor
22
+ Float(0.965)
15
23
  end
16
24
 
17
25
  # Twitter screen name for the `blue` dollar value
@@ -9,8 +9,8 @@ class Dolarblue
9
9
  def initialize(config = Configuration.instance)
10
10
  fail ArgumentError, "Expected a Dolarblue::Configuration instance as argument" unless config.is_a?(Configuration)
11
11
  @card_fee = config.card_fee
12
- @blue = Dolarblue::Exchange.new('Blue', config.blue_screen_name, config.blue_regexp, config.buy_sell_factor)
13
- @official = Dolarblue::Exchange.new('Official', config.official_screen_name, config.official_regexp, config.buy_sell_factor)
12
+ @blue = Dolarblue::Exchange.new('Blue', config.blue_screen_name, config.blue_regexp, config.buy_sell_blue_factor)
13
+ @official = Dolarblue::Exchange.new('Official', config.official_screen_name, config.official_regexp, config.buy_sell_official_factor)
14
14
  self
15
15
  end
16
16
 
@@ -1,3 +1,3 @@
1
1
  class Dolarblue
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dolarblue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Gallucci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-18 00:00:00.000000000 Z
11
+ date: 2013-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter_anonymous_client
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.6.2
139
139
  description: Query Argentine Peso vs US$ exchange values with particular interest
140
- in official vs. ilegal (blue) reference prices.
140
+ in official vs. street (blue) reference prices.
141
141
  email:
142
142
  - elgalu3@gmail.com
143
143
  executables:
@@ -190,7 +190,7 @@ rubygems_version: 2.0.3
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Query Argentine Peso vs US$ exchange values with particular interest in official
193
- vs. ilegal (blue) reference prices.
193
+ vs. street (blue) reference prices.
194
194
  test_files:
195
195
  - spec/dolarblue_spec.rb
196
196
  - spec/exchange_spec.rb