twitter_username_extractor 0.1.0 → 0.2.0

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: f2b9b4ca835e65d82147280d80b7aa4a79afc8b1
4
- data.tar.gz: 9135953634c21b5468b65b11d02bedd301f48447
3
+ metadata.gz: 33c6afb810ffca2db316d9013e1b97bf7e9a554e
4
+ data.tar.gz: f7f2e0317901aa74ccd44ac5a76d39b4619acb0a
5
5
  SHA512:
6
- metadata.gz: 12eb77c6dbb89343f5168eb2cbf663593831129f20cb242f08b0c954c0c075b94940e53a224835108b813b414464fd8bf1339ecce750e500d382f2024e047295
7
- data.tar.gz: 27abd5b414a791951738e49fcd3c214d8ea1a56d341a7abb7fdabcdf8529368a04b6701b2c51d924291aa646f49e54f4374a13e587dde6aafac14d92de7f1b9f
6
+ metadata.gz: 5d6771af9745dda3b740c3d1bce054c6d936da25f6b20e477ebabe490bc487686adc1748bc1fc885e1ebf869000a269a6e1d319f72a70f5eb7edd834c731024c
7
+ data.tar.gz: c379a90bb6a5c7fa324b6d2a7cd7321775e3d32f60621e9f43af12b01e7224b48d6d702eb387604ca6197175e7569bdb96d56009adbdd776fbf227192d82c9c7
@@ -0,0 +1,16 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [0.2.0](https://github.com/everypolitician/twitter_username_extractor/compare/v0.1.0...v0.2.0)
9
+
10
+ ### Fixed
11
+
12
+ - Removed an unnecessary `/` in a regular expression that was causing a warning ([#2](https://github.com/everypolitician/twitter_username_extractor/pull/2)).
13
+
14
+ ## 0.1.0 2016-01-11
15
+
16
+ - Initial release
data/Rakefile CHANGED
@@ -2,6 +2,7 @@ require 'bundler/gem_tasks'
2
2
  require 'rake/testtask'
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
+ t.warning = true
5
6
  t.libs << 'test'
6
7
  t.libs << 'lib'
7
8
  t.test_files = FileList['test/**/*_test.rb']
@@ -13,7 +13,7 @@ module TwitterUsernameExtractor
13
13
  return Regexp.last_match(1) if t.match(%r{twitter.com/search\?q=%23(\w+)}i)
14
14
  return Regexp.last_match(1) if t.match(%r{twitter.com/#!/https://twitter.com/(\w+)}i)
15
15
  return Regexp.last_match(1) if t.match(%r{(?:www.)?twitter.com/#!/(\w+)[/\?]?}i)
16
- return Regexp.last_match(1) if t.match(%r{(?:www.)?twitter.com/@?(\w+)[/\/]?}i)
16
+ return Regexp.last_match(1) if t.match(%r{(?:www.)?twitter.com/@?(\w+)[\/]?}i)
17
17
  fail Error, "Unknown twitter handle: #{t}"
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module TwitterUsernameExtractor
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_username_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mytton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".travis.yml"
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - LICENSE.txt
80
81
  - README.md