format_url 0.0.1 → 0.0.2

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: 01401f671d38bf76fdc22da5c9f0aaea4595d93d
4
- data.tar.gz: 0fdc81d55b5fb80b8beb688c150afb1181c6b212
3
+ metadata.gz: 78a247b59f214710a40f2d9b1efe2073537a35f7
4
+ data.tar.gz: fcf893da0a3e9a9ec78e29a6577d9dbe27619332
5
5
  SHA512:
6
- metadata.gz: 7f9cb2ade538ad4668d0694caae880eed88463d3a7dbb1413e302d4d0cad04c597c49cb8bba62f7d53d1c5d230ae81f72b966df21ec2f36a6abafee2862a51c5
7
- data.tar.gz: cdf8136751c2057aae94e75b9ec1daf2e1901e20aa83c9bf6053d1c5429bc8fba65d85017762982fe315ae0210c902ae17a26528d00ae1ac6a637a38de4a4c43
6
+ metadata.gz: 2dbc4592f766046d2aa1a4c989bde196c0285bae5cab43aba171c5ea3015119d10950920639b2e1fb2626e236a9b29b15236e4f00f98f9251582d55c9a4f5b23
7
+ data.tar.gz: 142052c47856b6183cec0380ede3ef94bd464699c08cace7eac43a4515cf773adc9d2db6966dc222997d1881779349a89a74bf9f6a33ca4c6ed60e2c1cf5f900
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.0.0"
@@ -1,3 +1,7 @@
1
+ ## 0.0.2
2
+
3
+ * Fixed regular expression so it plays nice with rails 4
4
+
1
5
  ## 0.0.1
2
6
 
3
7
  * initial release
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- # FormatUrl
1
+ # FormatUrl [![Build Status](https://api.travis-ci.org/pinchtozoom/format_url.png)](https://travis-ci.org/pinchtozoom/format_url)
2
+
2
3
 
3
4
  Format and validate a URL attribute in Active Record. This is an example gem created and based on [RailsCasts episode #301](http://railscasts.com/episodes/301-extracting-a-ruby-gem).
4
5
 
@@ -12,6 +12,6 @@ module FormatUrl
12
12
  end
13
13
 
14
14
  def self.url_regexp
15
- /^https?:\/\/([^\s:@]+:[^\s:@]*@)?[-[[:alnum:]]]+(\.[-[[:alnum:]]]+)+\.?(:\d{1,5})?([\/?]\S*)?$/iux
15
+ /\Ahttps?:\/\/([\A\s:@]+:[\A\s:@]*@)?[-[[:alnum:]]]+(\.[-[[:alnum:]]]+)+\.?(:\d{1,5})?([\/?]\S*)?\z/iux
16
16
  end
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module FormatUrl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: format_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Hopkinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-25 00:00:00.000000000 Z
11
+ date: 2013-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - .gitignore
77
77
  - .rspec
78
+ - .travis.yml
78
79
  - CHANGELOG.md
79
80
  - Gemfile
80
81
  - LICENSE.txt