updoc 0.1.1 → 0.1.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: 0dbff84224e803ebedfdc35f85364e9f8dbe500c
4
- data.tar.gz: 746169f076b4661e19848b363c60bb5cce57636d
3
+ metadata.gz: d1df6dcb75ce635a978075bdb79c50ad485edfb5
4
+ data.tar.gz: 5c0744d7cd969f4d594c41d3468cdbcfd1ecd905
5
5
  SHA512:
6
- metadata.gz: 3a99e334aa03743c1a72fb1affc250e40579c8de3a1e2aa49f5745e7a1c632b63302418e609478763972422f32fee549979f17390e98aabcd26613c406af493b
7
- data.tar.gz: c66df73df1eb6f8ac95d9cb08e1e68c7021b4f30f5bcdbb0ef1f3ccb44d657eeb526e49d6fac0bda50bac7f288aa2f6645b07ca8b753b9c6dca5ad30a590cab2
6
+ metadata.gz: 3efb6a537f591a07fd7042859468489572cc2c5e35fea31f962df90fde7156457e3c489d4ecf9a1c4bfdeeab9ab1b5465ec997c028880b0190e0da1f02463206
7
+ data.tar.gz: 45c5e7522eae316a16e34fcdd7156eedc890888c9e533c43ce9ec2d2af2b3303373f7563f7999d031a784216ac09eefb8907a814d068e84065f4b7b53ac31687
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Updoc
2
2
 
3
+ ![](https://travis-ci.org/swipely/updoc.svg?branch=master)
4
+
3
5
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/updoc`. To experiment with that code, run `bin/console` for an interactive prompt.
4
6
 
5
7
  TODO: Delete this and the text above, and describe your gem
data/lib/updoc/config.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Updoc
2
2
  module Config
3
3
 
4
- Storage = Struct.new(:feature_name, :config)
4
+ FeatureConfig = Struct.new(:feature_name, :config)
5
5
 
6
6
  def self.included(base)
7
7
  base.extend(ClassMethods)
@@ -9,7 +9,7 @@ module Updoc
9
9
 
10
10
  module ClassMethods
11
11
  def updoc
12
- @updoc ||= Storage.new(
12
+ @updoc ||= FeatureConfig.new(
13
13
  self.to_s.underscore,
14
14
  OpenStruct.new
15
15
  )
@@ -1,6 +1,6 @@
1
1
  module Updoc
2
2
  module Report
3
- class Rails
3
+ class RailsReport
4
4
  include Updoc::Report
5
5
 
6
6
  def self.report!(rails_app = ::Rails.application)
@@ -58,6 +58,8 @@ module Updoc
58
58
 
59
59
  depends_on = dependent.updoc.config.depends_on
60
60
  depends_on.consumers.each do |name, services|
61
+ raise "Referenced consumer #{name} has not be defined" unless Updoc::Consumers[name]
62
+
61
63
  consumers[name] = {
62
64
  service_type: Updoc::Consumers[name].service_type,
63
65
  definition_uri: Updoc::Consumers[name].definition_uri,
data/lib/updoc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Updoc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: updoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Guymon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -120,4 +120,3 @@ signing_key:
120
120
  specification_version: 4
121
121
  summary: Generates a report of application producers and consumers
122
122
  test_files: []
123
- has_rdoc: