zipfy 1.0.0 → 1.0.1

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: 0da3f0c6e6311a52b646c2e0e4bb3e1e9a6558f3
4
- data.tar.gz: 99d62a3cacf7666e7b0328ee81e38d70bf88f8b4
3
+ metadata.gz: bb3654670c2336cb47fa2dac85bc4db0cc3c9f2d
4
+ data.tar.gz: 4fe446531e03d9c4594b759aba220e4dac6e0fd0
5
5
  SHA512:
6
- metadata.gz: 97a2b41f8e28e30ebdd616ee42eff3bd684d7b013ceefd556a69a725f42b88903513ed6616ca2c72cc359d8a6afe43b382bec44553661a87303330913a1e82e2
7
- data.tar.gz: bd0cd82f14544ba82f80b81555bce751109b6779f7c47116f108ae61eb7722b2408c933d404a1c12b554021d5844f86b0cb3e9121f0be696ee0b3e6de9b59c58
6
+ metadata.gz: c1cec8c3bdfaeaab8674819f335d163c0dabeb02469d12424e04d8ab5e29bc9d8060e3a813d2d43ca73f00d02aa28fb7f0fad18481cc84a6a218f62cbf47561c
7
+ data.tar.gz: c08caf4d0d40380284ef7da440a6b28822b1b0bacd70ac562de625e76dc932a0b6488b29cd3a2a2ec71e11bf618fd0cbbe9fb356d6f5dba33af4f152d551a549
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
+
1
2
  sudo: false
2
3
  language: ruby
3
4
  rvm:
4
5
  - 2.3.3
5
6
  before_install: gem install bundler -v 1.13.7
7
+ notifications:
8
+ email: false
data/Gemfile CHANGED
@@ -3,4 +3,3 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in zipfy.gemspec
4
4
  gemspec
5
5
  gem 'putsplus'
6
- gem 'getoptlong'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Zipfy
1
+ # Zipfy [![Build Status](https://travis-ci.org/bjubes/zipfy.svg?branch=master)](https://travis-ci.org/bjubes/zipfy)
2
2
 
3
3
  Zipfy calculates word distribution in text files or strings and their deviation from Zipf's law"
4
4
 
data/bin/zipfy CHANGED
File without changes
data/lib/zipfy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zipfy
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/zipfy.rb CHANGED
@@ -1,4 +1,10 @@
1
+ begin #dev optional gems
1
2
  require 'pry'
3
+ rescue LoadError
4
+ #probably a travis or non-dev build
5
+ end
6
+
7
+
2
8
  # a program for seeing the zipfian distribution of a text.
3
9
  require 'putsplus'
4
10
  include Putsplus
@@ -104,6 +110,6 @@ module Zipfy
104
110
  sum = 0.0
105
111
  deviations.each {|d| sum += d}
106
112
  (sum/length.to_f)
107
- end
113
+ end
108
114
  end
109
115
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipfy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bjubes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: putsplus
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.5.2
110
+ rubygems_version: 2.5.1
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Zipfy calculates word distribution in text files or strings and their deviation