melissa 0.0.4 → 0.0.5

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: 34019bdcbd74fc8feffc090d650101e0738d358b
4
- data.tar.gz: 761cb5a73bd180990f56a0fd0459808bee145b6c
3
+ metadata.gz: 6dcffa20af9ca3ade5ceb5602ff609898a934346
4
+ data.tar.gz: 70c603ecb57a6652097f5248203b2e867aab97f7
5
5
  SHA512:
6
- metadata.gz: 11e3f93a13848c6721fe3261a1b6325105f0accf2db16f449ae490539b57b5edb474f23749d27b1a81a190220f94938cf453faf9d3ee5d993cedef138c428262
7
- data.tar.gz: 00d2666f21c15258ba0d7aff106a4a03ca06d99b9b188470480e44c15e20b3fd521d1770ea876921d4acbc9a2d09fde90e9d2536e1ea224e21dadc06bad7ddbe
6
+ metadata.gz: 1cb2c32e4145cfa0cdb4c0673b47eea4de41362a513db1f1c7b2faf1412a0415ae8ef6eb1fafff140bf734b900a1dcc68cd7c425b270afbabf7eac23882df5a7
7
+ data.tar.gz: 106cd8593a08cc4fbf2ca9ec01291e83602ccc7b5785c93f0641f91200d658669d8df9bbc70f4154f56ccc58a81bc68dfff401f781e8de528071b8cd61b5ce39
data/.codeclimate.yml ADDED
@@ -0,0 +1,51 @@
1
+ # This is a sample .codeclimate.yml configured for Engine analysis on Code
2
+ # Climate Platform. For an overview of the Code Climate Platform, see here:
3
+ # http://docs.codeclimate.com/article/300-the-codeclimate-platform
4
+
5
+ # Under the engines key, you can configure which engines will analyze your repo.
6
+ # Each key is an engine name. For each value, you need to specify enabled: true
7
+ # to enable the engine as well as any other engines-specific configuration.
8
+
9
+ # For more details, see here:
10
+ # http://docs.codeclimate.com/article/289-configuring-your-repository-via-codeclimate-yml#platform
11
+
12
+ # For a list of all available engines, see here:
13
+ # http://docs.codeclimate.com/article/296-engines-available-engines
14
+
15
+ engines:
16
+ # to turn on an engine, add it here and set enabled to `true`
17
+ # to turn off an engine, set enabled to `false` or remove it
18
+ rubocop:
19
+ enabled: true
20
+ golint:
21
+ enabled: true
22
+ gofmt:
23
+ enabled: true
24
+ eslint:
25
+ enabled: true
26
+ csslint:
27
+ enabled: true
28
+
29
+ # Engines can analyze files and report issues on them, but you can separately
30
+ # decide which files will receive ratings based on those issues. This is
31
+ # specified by path patterns under the ratings key.
32
+
33
+ # For more details see here:
34
+ # http://docs.codeclimate.com/article/289-configuring-your-repository-via-codeclimate-yml#platform
35
+
36
+ # Note: If the ratings key is not specified, this will result in a 0.0 GPA on your dashboard.
37
+
38
+ # ratings:
39
+ # paths:
40
+ # - app/**
41
+ # - lib/**
42
+ # - "**.rb"
43
+ # - "**.go"
44
+
45
+ # You can globally exclude files from being analyzed by any engine using the
46
+ # exclude_paths key.
47
+
48
+ #exclude_paths:
49
+ #- spec/**/*
50
+ #- vendor/**/*
51
+
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.2.1
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ - jruby-1.7
5
+ - rbx
6
+
7
+ script:
8
+ - bundle exec rake test
9
+
10
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- melissa (0.0.4)
4
+ melissa (0.0.5)
5
5
  activesupport
6
6
  ffi
7
7
  minitest
@@ -19,8 +19,10 @@ GEM
19
19
  ansi (1.5.0)
20
20
  builder (3.2.2)
21
21
  ffi (1.9.8)
22
+ ffi (1.9.8-java)
22
23
  i18n (0.7.0)
23
24
  json (1.8.2)
25
+ json (1.8.2-java)
24
26
  minitest (5.4.0)
25
27
  minitest-reporters (1.0.8)
26
28
  ansi
@@ -32,6 +34,7 @@ GEM
32
34
  ruby-progressbar (1.7.1)
33
35
  shoulda-context (1.2.1)
34
36
  thread_safe (0.3.5)
37
+ thread_safe (0.3.5-java)
35
38
  tzinfo (1.2.2)
36
39
  thread_safe (~> 0.1)
37
40
 
@@ -46,3 +49,6 @@ DEPENDENCIES
46
49
  minitest-stub_any_instance
47
50
  rake
48
51
  shoulda-context
52
+
53
+ BUNDLED WITH
54
+ 1.10.6
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Melissa
2
2
 
3
+ [![Build Status](https://travis-ci.org/smarinskaya/Melissa.svg?branch=master)](https://travis-ci.org/smarinskaya/Melissa)
4
+
3
5
  Configurable interface to Melissa Data Address and GeoCoder objects
4
6
 
5
7
  ##Description
@@ -112,13 +114,13 @@ The following rules are used in mocking AddrObj Library:
112
114
 
113
115
  Mocked GeoPoint object will return following values:
114
116
 
115
- ```ruby
117
+ ```ruby
116
118
  @latitude = 27.850397
117
119
  @longitude = -82.659555
118
120
  @time_zone_code = '05'
119
121
  @resultcodes = ['GS05']
120
122
  @is_valid = true
121
- ```
123
+ ```
122
124
 
123
125
  To use melissa gem from rails application, see railtie.rb, and create melissa.yml in the application, based
124
126
  on the example below:
@@ -154,6 +156,10 @@ and mock objects will be used in test and development.
154
156
  1. [Brad Pardee](https://github.com/bpardee)
155
157
  2. [Svetlana Marinskaya](https://github.com/smarinskaya)
156
158
 
159
+ ## Contributers
160
+
161
+ 1. [ybur-yug](https://github.com/ybur-yug)
162
+
157
163
 
158
164
  ##Aknowlegments
159
165
 
@@ -19,6 +19,9 @@ module Melissa
19
19
  @resultcodes = ['AS01']
20
20
  @address_type_string = 'Street'
21
21
  @time_zone_code = '05'
22
+ @@callbacks.each do |callback|
23
+ callback.call
24
+ end
22
25
  end
23
26
 
24
27
  #Mock
@@ -20,6 +20,9 @@ module Melissa
20
20
  @time_zone_code = '05'
21
21
  @resultcodes = ['GS05']
22
22
  @is_valid = true
23
+ @@callbacks.each do |callback|
24
+ callback.call
25
+ end
23
26
  end
24
27
  end
25
- end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Melissa
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -126,7 +126,7 @@ class AddrObjTest < Minitest::Test
126
126
  end
127
127
 
128
128
  describe 'callback' do
129
- it 'does not execute added callback' do
129
+ it 'executes added callback' do
130
130
  callback_flag = false
131
131
  Melissa::AddrObj.add_callback do
132
132
  callback_flag = true
@@ -139,7 +139,7 @@ class AddrObjTest < Minitest::Test
139
139
  zip: '89128'
140
140
  )
141
141
 
142
- assert !callback_flag
142
+ assert callback_flag
143
143
  end
144
144
  end
145
145
  end
@@ -81,7 +81,7 @@ class GeoPointTest < Minitest::Test
81
81
  end
82
82
 
83
83
  describe 'callback' do
84
- it 'does not execute added callback' do
84
+ it 'executes added callback' do
85
85
  callback_flag = false
86
86
  Melissa::AddrObj.add_callback do
87
87
  callback_flag = true
@@ -95,7 +95,7 @@ class GeoPointTest < Minitest::Test
95
95
  )
96
96
  Melissa.geo_point(valid_addr_obj)
97
97
 
98
- assert !callback_flag
98
+ assert callback_flag
99
99
  end
100
100
  end
101
101
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: melissa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Pardee
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-21 00:00:00.000000000 Z
12
+ date: 2015-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -75,9 +75,11 @@ executables: []
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
+ - ".codeclimate.yml"
78
79
  - ".gitignore"
79
80
  - ".jruby-version"
80
81
  - ".ruby-version"
82
+ - ".travis.yml"
81
83
  - Gemfile
82
84
  - Gemfile.lock
83
85
  - LICENSE
@@ -118,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
120
  version: '0'
119
121
  requirements: []
120
122
  rubyforge_project:
121
- rubygems_version: 2.2.2
123
+ rubygems_version: 2.4.6
122
124
  signing_key:
123
125
  specification_version: 4
124
126
  summary: Melissa allows you to use ruby wrappers for Melissa Data's AddrObj and GeoPoint