release_dove 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: 6daf54c2c2da9d928b595935d2900f2d954e6150
4
- data.tar.gz: de398bcb15817e7fb7f7e6539dc5ead1049f43e9
3
+ metadata.gz: dadd01630946da7f0822e1521f53bb585936fd69
4
+ data.tar.gz: bcb234763e4f2fcd7ce1b7ae876d9ad3a9796404
5
5
  SHA512:
6
- metadata.gz: 5475e448f22bf0c1ef1d7024ecff1390374a7b0bbb6f4c15fdd8be5aee79db7de3ca4bad41c61495c3c10de60d41e944d461a08fda733b93b909f7453c2a6991
7
- data.tar.gz: 45c0ca64cc91b87205addd311fe4f716a2444a000602179c8f8757a2dd7a5e313115ee7ac35a0b8a9e0846de0828516446b02cdfd562ef9a8eed67fe73446833
6
+ metadata.gz: 8161c2af87215895d554135c08468eafb156233599f708e6de62d25729ee880dd85c739956b564d53d421a9b76f2e8ab3b593853b6dacbadfb935c18de10193a
7
+ data.tar.gz: bb1a564e82fde9cf535d972ac10124d07aa0b30bc00be57f13279bfc2c53b576aa9dbf7cdf64f80dc21c57212e3a4e8aa3fe44e7f8b0c1c01ac718e78ed9c72b
data/CHANGELOG.md CHANGED
@@ -1,14 +1,26 @@
1
1
  # Release Dove change log
2
2
 
3
+ ## [0.3.0] - 2016-10-19
4
+
5
+ ### Removed
6
+ - Support for `[Unreleased]` and similar tags specifying no version
7
+
8
+ ### Changed
9
+ - Refactor Release model a bit
10
+
3
11
  ## [0.2.0] - 2016-10-17
12
+
4
13
  ### Added
5
14
  - Add Rubocop checks to default tasks
15
+
6
16
  ### Changed
7
17
  - Refactor Release model
18
+
8
19
  ### Fixed
9
20
  - Runtime dependencies error
10
21
 
11
22
  ## [0.1.0] - 2016-10-14
23
+
12
24
  ### Added
13
25
  - Basic API which returns a collection of releases in JSON format
14
26
  - Cover with basic funcitonal tests
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Release Dove
2
- [![Build Status](https://travis-ci.org/gafrom/release_dove.svg)](https://travis-ci.org/gafrom/release_dove)
2
+ [![Build Status](https://travis-ci.org/rambler-digital-solutions/release_dove.svg)](https://travis-ci.org/rambler-digital-solutions/release_dove)
3
3
  [![Gem Version](https://badge.fury.io/rb/release_dove.svg)](https://badge.fury.io/rb/release_dove)
4
4
 
5
5
  Dead-simple widget allowing you to receive notifications about new releases of your application in a form of nice pop-up bar.
@@ -11,13 +11,7 @@ Add this line to your application's `Gemfile`:
11
11
  gem 'release_dove'
12
12
  ```
13
13
 
14
- And then execute:
15
-
16
- $ bundle
17
-
18
- Or install it yourself as:
19
-
20
- $ gem install release_dove
14
+ Next, tell bundle to install it by executing `$ bundle` or install it yourself by running `$ gem install release_dove`.
21
15
 
22
16
  Then drop a line to `routes.rb` to specify where you want your colleciton of releases:
23
17
  ```ruby
@@ -49,7 +43,7 @@ TODO: Write usage instructions here with npm package included
49
43
 
50
44
  ## Contributing
51
45
 
52
- Bug reports and pull requests are welcome on GitHub at https://github.com/gafrom/release_dove.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rambler-digital-solutions/release_dove.
53
47
 
54
48
  ## License
55
49
 
@@ -4,16 +4,12 @@ class ReleaseDove::Release
4
4
  attr_reader :id, :date, :version, :header, :content
5
5
 
6
6
  CHANGELOG = './CHANGELOG.md'
7
- TAG = /^.*(?<header>\[Unreleased\]|\[(?<version>\d+\.\d+\.\d+)\].*(?<date>\d{4}\-\d{2}\-\d{2}))$/i
7
+ TAG = /^.*(?<header>\[(?<version>\d+\.\d+\.\d+)\].*(?<date>\d{4}\-\d{2}\-\d{2}))$/i
8
8
 
9
9
  def initialize(id, content)
10
10
  @id = id
11
11
  @content = content
12
12
 
13
- assign_other_attributes
14
- end
15
-
16
- def assign_other_attributes
17
13
  return unless TAG =~ content
18
14
 
19
15
  @version = $LAST_MATCH_INFO[:version]
@@ -62,6 +58,16 @@ class ReleaseDove::Release
62
58
 
63
59
  private
64
60
 
61
+ def read_from_file
62
+ file = File.open(CHANGELOG, 'rb', encoding: 'utf-8')
63
+ content = file.read
64
+ file.close
65
+
66
+ indices = content.enum_for(:scan, TAG).map { Regexp.last_match.begin(0) }
67
+
68
+ [content, indices]
69
+ end
70
+
65
71
  def releases
66
72
  return to_enum(:releases) unless block_given?
67
73
 
@@ -76,15 +82,5 @@ class ReleaseDove::Release
76
82
  yield id, content
77
83
  end
78
84
  end
79
-
80
- def read_from_file
81
- file = File.open(CHANGELOG, 'rb', encoding: 'utf-8')
82
- content = file.read
83
- file.close
84
-
85
- indices = content.enum_for(:scan, TAG).map { Regexp.last_match.begin(0) }
86
-
87
- [content, indices]
88
- end
89
85
  end
90
86
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReleaseDove
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
data/release_dove.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.summary = 'Simple widget to notify about new releases of your applicaiton.'
14
14
  spec.description = "This is a backend part of easy-to-embed widget with pop-up \
15
15
  notifications about your application's new releases."
16
- spec.homepage = 'https://github.com/gafrom/release_dove'
16
+ spec.homepage = 'https://github.com/rambler-digital-solutions/release_dove'
17
17
  spec.license = 'MIT'
18
18
 
19
19
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: release_dove
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
  - Oleg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
11
+ date: 2016-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -109,7 +109,7 @@ files:
109
109
  - lib/release_dove/release.rb
110
110
  - lib/release_dove/version.rb
111
111
  - release_dove.gemspec
112
- homepage: https://github.com/gafrom/release_dove
112
+ homepage: https://github.com/rambler-digital-solutions/release_dove
113
113
  licenses:
114
114
  - MIT
115
115
  metadata: {}