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 +4 -4
- data/README.md +2 -0
- data/lib/updoc/config.rb +2 -2
- data/lib/updoc/report/rails_report.rb +3 -1
- data/lib/updoc/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1df6dcb75ce635a978075bdb79c50ad485edfb5
|
4
|
+
data.tar.gz: 5c0744d7cd969f4d594c41d3468cdbcfd1ecd905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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 ||=
|
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
|
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
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.
|
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-
|
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:
|