xbrlware-ce 1.0.2
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.
- data/Copying.txt +13 -0
- data/License.txt +13 -0
- data/Rakefile.rb +124 -0
- data/Readme.txt +15 -0
- data/doc/classes/Edgar.html +144 -0
- data/doc/classes/Edgar/HTMLFeedDownloader.html +199 -0
- data/doc/classes/Edgar/RSSFeedDownloader.html +225 -0
- data/doc/classes/Xbrlware.html +350 -0
- data/doc/classes/Xbrlware/Context.html +429 -0
- data/doc/classes/Xbrlware/Entity.html +323 -0
- data/doc/classes/Xbrlware/Identifier.html +191 -0
- data/doc/classes/Xbrlware/Instance.html +742 -0
- data/doc/classes/Xbrlware/Item.html +278 -0
- data/doc/classes/Xbrlware/LBConstants.html +144 -0
- data/doc/classes/Xbrlware/Linkbase.html +131 -0
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase.html +212 -0
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html +172 -0
- data/doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation/CalculationArc.html +166 -0
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase.html +210 -0
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html +204 -0
- data/doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition/DefinitionArc.html +160 -0
- data/doc/classes/Xbrlware/Linkbase/LabelLinkbase.html +239 -0
- data/doc/classes/Xbrlware/Linkbase/LabelLinkbase/Label.html +189 -0
- data/doc/classes/Xbrlware/Linkbase/Linkbase.html +172 -0
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link.html +217 -0
- data/doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html +284 -0
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase.html +224 -0
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html +222 -0
- data/doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation/PresentationArc.html +160 -0
- data/doc/classes/Xbrlware/Taxonomy.html +369 -0
- data/doc/classes/Xbrlware/TaxonomyDefintion.html +177 -0
- data/doc/classes/Xbrlware/Unit.html +179 -0
- data/doc/classes/Xbrlware/Unit/Divide.html +165 -0
- data/doc/created.rid +1 -0
- data/doc/files/Readme_txt.html +124 -0
- data/doc/files/lib/edgar/edgar_data_downloader_rb.html +129 -0
- data/doc/files/lib/edgar/util_rb.html +129 -0
- data/doc/files/lib/edgar_rb.html +141 -0
- data/doc/files/lib/xbrlware/constants_rb.html +129 -0
- data/doc/files/lib/xbrlware/context_rb.html +129 -0
- data/doc/files/lib/xbrlware/date_util_rb.html +129 -0
- data/doc/files/lib/xbrlware/float_patch_rb.html +129 -0
- data/doc/files/lib/xbrlware/hash_util_rb.html +129 -0
- data/doc/files/lib/xbrlware/instance_rb.html +129 -0
- data/doc/files/lib/xbrlware/item_rb.html +129 -0
- data/doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html +129 -0
- data/doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html +129 -0
- data/doc/files/lib/xbrlware/linkbase/label_linkbase_rb.html +129 -0
- data/doc/files/lib/xbrlware/linkbase/linkbase_rb.html +129 -0
- data/doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html +129 -0
- data/doc/files/lib/xbrlware/meta_util_rb.html +129 -0
- data/doc/files/lib/xbrlware/taxonomy_rb.html +129 -0
- data/doc/files/lib/xbrlware/unit_rb.html +129 -0
- data/doc/files/lib/xbrlware/util_rb.html +129 -0
- data/doc/files/lib/xbrlware/xml_parser_rb.html +129 -0
- data/doc/files/lib/xbrlware_rb.html +163 -0
- data/doc/fr_class_index.html +55 -0
- data/doc/fr_file_index.html +48 -0
- data/doc/fr_method_index.html +104 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/example/benchmark/instance_parser_benchmark.rb +25 -0
- data/example/case_study/buy_strategy.rb +34 -0
- data/example/case_study/c-20091230.xml +29 -0
- data/example/case_study/c_sell_strategy.rb +29 -0
- data/example/lang_integration/thrift/rating-client.py +21 -0
- data/example/lang_integration/thrift/rating-impl.rb +13 -0
- data/example/lang_integration/thrift/rating-server.rb +25 -0
- data/example/lang_integration/thrift/rating.thrift +52 -0
- data/example/quick_start/foo.rb +10 -0
- data/example/quick_start/foo.xml +29 -0
- data/example/quick_start/print_item.rb +27 -0
- data/lib/edgar.rb +30 -0
- data/lib/edgar/edgar_data_downloader.rb +126 -0
- data/lib/edgar/util.rb +30 -0
- data/lib/xbrlware.rb +65 -0
- data/lib/xbrlware/constants.rb +29 -0
- data/lib/xbrlware/context.rb +148 -0
- data/lib/xbrlware/date_util.rb +35 -0
- data/lib/xbrlware/float_patch.rb +26 -0
- data/lib/xbrlware/hash_util.rb +175 -0
- data/lib/xbrlware/instance.rb +406 -0
- data/lib/xbrlware/item.rb +115 -0
- data/lib/xbrlware/linkbase/calculation_linkbase.rb +137 -0
- data/lib/xbrlware/linkbase/definition_linkbase.rb +186 -0
- data/lib/xbrlware/linkbase/label_linkbase.rb +128 -0
- data/lib/xbrlware/linkbase/linkbase.rb +170 -0
- data/lib/xbrlware/linkbase/presentation_linkbase.rb +160 -0
- data/lib/xbrlware/meta_util.rb +45 -0
- data/lib/xbrlware/taxonomies/us_gaap_taxonomy_20090131.rb +40365 -0
- data/lib/xbrlware/taxonomy.rb +133 -0
- data/lib/xbrlware/unit.rb +42 -0
- data/lib/xbrlware/util.rb +83 -0
- data/lib/xbrlware/xml_parser.rb +122 -0
- data/setup.rb +1585 -0
- data/test/lib/edgar/edgar_data_downloader_test.rb +35 -0
- data/test/lib/edgar/resources/0000930413-09-005485-index.htm +331 -0
- data/test/lib/edgar/resources/usgaap.rss.xml +2861 -0
- data/test/lib/xbrlware/411_footnotes_test.rb +65 -0
- data/test/lib/xbrlware/42_schemaref_test.rb +20 -0
- data/test/lib/xbrlware/46_item_test.rb +253 -0
- data/test/lib/xbrlware/47_context_test.rb +129 -0
- data/test/lib/xbrlware/48_unit_test.rb +45 -0
- data/test/lib/xbrlware/49_tuple_test.rb +12 -0
- data/test/lib/xbrlware/date_util_test.rb +24 -0
- data/test/lib/xbrlware/dimension/context_explicit_dimension_test.rb +40 -0
- data/test/lib/xbrlware/dimension/resources/context_explicit_dimension.xml +84 -0
- data/test/lib/xbrlware/float_patch_test.rb +10 -0
- data/test/lib/xbrlware/hash_util_test.rb +29 -0
- data/test/lib/xbrlware/instance_test.rb +250 -0
- data/test/lib/xbrlware/linkbase/calculation_linkbase_test.rb +39 -0
- data/test/lib/xbrlware/linkbase/definition_linkbase_test.rb +35 -0
- data/test/lib/xbrlware/linkbase/label_linkbase_test.rb +22 -0
- data/test/lib/xbrlware/linkbase/linkbase_test.rb +36 -0
- data/test/lib/xbrlware/linkbase/linkbase_test_util.rb +98 -0
- data/test/lib/xbrlware/linkbase/presentation_linkbase_test.rb +33 -0
- data/test/lib/xbrlware/linkbase/report.html +62 -0
- data/test/lib/xbrlware/linkbase/resources/cal.xml +219 -0
- data/test/lib/xbrlware/linkbase/resources/def.xml +186 -0
- data/test/lib/xbrlware/linkbase/resources/def_with_multiple_dimension.xml +41 -0
- data/test/lib/xbrlware/linkbase/resources/instance.xml +5822 -0
- data/test/lib/xbrlware/linkbase/resources/lab.xml +782 -0
- data/test/lib/xbrlware/linkbase/resources/pre.xml +485 -0
- data/test/lib/xbrlware/linkbase/resources/report_10_q.htm +12327 -0
- data/test/lib/xbrlware/linkbase/resources/taxonomy.xsd +178 -0
- data/test/lib/xbrlware/linkbase/sample_html_report.html +40 -0
- data/test/lib/xbrlware/meta_util_test.rb +23 -0
- data/test/lib/xbrlware/resources/411/411_footnotes.xml +66 -0
- data/test/lib/xbrlware/resources/42/42_schema_ref_with_base.xml +7 -0
- data/test/lib/xbrlware/resources/42/42_schema_ref_without_base.xml +7 -0
- data/test/lib/xbrlware/resources/46/46_item_value.xml +61 -0
- data/test/lib/xbrlware/resources/47/472_period_forever.xml +29 -0
- data/test/lib/xbrlware/resources/47/472_period_instant.xml +24 -0
- data/test/lib/xbrlware/resources/47/472_period_start_dt_and_end_dt.xml +30 -0
- data/test/lib/xbrlware/resources/47/4731_entity_identifier.xml +29 -0
- data/test/lib/xbrlware/resources/47/4732_entity_segment_not_present.xml +24 -0
- data/test/lib/xbrlware/resources/47/4732_entity_segment_present.xml +30 -0
- data/test/lib/xbrlware/resources/47/474_scenario_not_present.xml +26 -0
- data/test/lib/xbrlware/resources/47/474_scenario_present.xml +30 -0
- data/test/lib/xbrlware/resources/47/47_multiple_contexts.xml +36 -0
- data/test/lib/xbrlware/resources/48/482_unit_measure.xml +32 -0
- data/test/lib/xbrlware/resources/48/483_unit_divide.xml +39 -0
- data/test/lib/xbrlware/resources/48/48_multiple_units.xml +43 -0
- data/test/lib/xbrlware/resources/49/49_tuple.xml +61 -0
- data/test/lib/xbrlware/resources/49_tuple.xsd +44 -0
- data/test/lib/xbrlware/resources/instance.xml +128 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/cal.xml +219 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/def.xml +186 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/instance.xml +5822 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/lab.xml +782 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/pre.xml +485 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/report/report_index.html +62 -0
- data/test/lib/xbrlware/resources/report_test_xbrl_files/taxonomy.xsd +178 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/1/cal.xml +223 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/1/def.xml +190 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/1/lab.xml +786 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/1/pre.xml +489 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/1/taxonomy.xsd +177 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/cal.xml +223 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/def.xml +190 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/lab.xml +786 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/pre.xml +489 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/2/taxonomy.xsd +175 -0
- data/test/lib/xbrlware/resources/taxonomy_test_files/3/taxonomy.xsd +175 -0
- data/test/lib/xbrlware/resources/us_gaap_schema.xsd +8 -0
- data/test/lib/xbrlware/resources/us_gaap_schema_local.xsd +10 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/cal.xml +219 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/def.xml +186 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/instance.xml +5822 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/lab.xml +782 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/pre.xml +485 -0
- data/test/lib/xbrlware/resources/util_test_xbrl_files/taxonomy.xsd +178 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/dei-2009-01-31.xsd +162 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/dei-std-2009-01-31.xsd +23 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/negated-2008-03-31.xsd +23 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/ref-2006-02-27.xsd +121 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/us-gaap-2009-01-31.xsd +13474 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/us-roles-2009-01-31.xsd +2283 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/us-types-2009-01-31.xsd +368 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xbrl-instance-2003-12-31.xsd +772 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xbrl-linkbase-2003-12-31.xsd +477 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xbrldi-2006.xsd +41 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xbrldt-2005.xsd +53 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xl-2003-12-31.xsd +246 -0
- data/test/lib/xbrlware/resources/xbrl_xsd/xlink-2003-12-31.xsd +117 -0
- data/test/lib/xbrlware/taxonomy_test.rb +124 -0
- data/test/lib/xbrlware/util_test.rb +18 -0
- data/test/lib/xbrlware/xml_parser_test.rb +142 -0
- data/test/schema_validator_jruby.rb +40 -0
- data/test/schema_validator_ruby.rb +7 -0
- data/test/scratchpad/block.rb +36 -0
- data/test/test_helper.rb +21 -0
- data/xbrlware.iml +30 -0
- metadata +261 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper.rb'
|
|
2
|
+
|
|
3
|
+
class TestXbrlTaxonomy < Test::Unit::TestCase
|
|
4
|
+
|
|
5
|
+
@@xsd_file=File.dirname(__FILE__)+"/resources/us_gaap_schema_local.xsd"
|
|
6
|
+
|
|
7
|
+
def test_linkbase_files_are_pickedup_from_taxomony
|
|
8
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/taxonomy.xsd"
|
|
9
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
10
|
+
taxonomy.init_all_lb
|
|
11
|
+
|
|
12
|
+
assert_not_nil(taxonomy.lablb)
|
|
13
|
+
assert_not_nil(taxonomy.prelb)
|
|
14
|
+
assert_not_nil(taxonomy.deflb)
|
|
15
|
+
assert_not_nil(taxonomy.callb)
|
|
16
|
+
|
|
17
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/2/taxonomy.xsd"
|
|
18
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
19
|
+
taxonomy.init_all_lb
|
|
20
|
+
|
|
21
|
+
assert_not_nil(taxonomy.lablb)
|
|
22
|
+
assert_not_nil(taxonomy.prelb)
|
|
23
|
+
assert_not_nil(taxonomy.deflb)
|
|
24
|
+
assert_not_nil(taxonomy.callb)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def test_linkbase_files_from_taxonomy_are_ignored_when_overriden
|
|
28
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/3/taxonomy.xsd"
|
|
29
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
30
|
+
|
|
31
|
+
_cal=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/cal.xml"
|
|
32
|
+
_pre=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/pre.xml"
|
|
33
|
+
_lab=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/lab.xml"
|
|
34
|
+
_def=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/def.xml"
|
|
35
|
+
|
|
36
|
+
taxonomy.init_all_lb(_cal, _pre, _lab, _def)
|
|
37
|
+
|
|
38
|
+
assert_not_nil(taxonomy.lablb)
|
|
39
|
+
assert_not_nil(taxonomy.prelb)
|
|
40
|
+
assert_not_nil(taxonomy.deflb)
|
|
41
|
+
assert_not_nil(taxonomy.callb)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def test_linbase_files_are_initialized_only_once
|
|
45
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/taxonomy.xsd"
|
|
46
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
47
|
+
taxonomy.init_all_lb
|
|
48
|
+
|
|
49
|
+
_cal=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/not_exist_cal.xml"
|
|
50
|
+
_pre=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/not_exist_pre.xml"
|
|
51
|
+
_lab=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/not_exist_lab.xml"
|
|
52
|
+
_def=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/not_exist_def.xml"
|
|
53
|
+
|
|
54
|
+
taxonomy.init_all_lb(_cal, _pre, _lab, _def)
|
|
55
|
+
|
|
56
|
+
assert_not_nil(taxonomy.lablb)
|
|
57
|
+
assert_not_nil(taxonomy.prelb)
|
|
58
|
+
assert_not_nil(taxonomy.deflb)
|
|
59
|
+
assert_not_nil(taxonomy.callb)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def test_taxonomy_definition
|
|
64
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/taxonomy.xsd"
|
|
65
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
66
|
+
|
|
67
|
+
assert_not_nil(taxonomy.definition("BalanceSheetDetailsAbstract"))
|
|
68
|
+
|
|
69
|
+
#elemnt that has dash in the name
|
|
70
|
+
assert_not_nil(taxonomy.definition("Owners-NetInvestment-Member"))
|
|
71
|
+
|
|
72
|
+
#element name has special chars
|
|
73
|
+
assert_not_nil(taxonomy.definition("Owners$Net.Investment|Member"))
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def test_predefined_us_gaap_taxonomy_definition
|
|
77
|
+
taxonomy_file=File.dirname(__FILE__)+"/resources/taxonomy_test_files/1/taxonomy.xsd"
|
|
78
|
+
taxonomy=Xbrlware::Taxonomy.new(taxonomy_file, nil)
|
|
79
|
+
assert_not_nil(taxonomy.definition("AccidentAndHealthInsuranceSegmentMember"))
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class TestXbrlTaxonomyForNewDefinition < Test::Unit::TestCase
|
|
84
|
+
|
|
85
|
+
def setup
|
|
86
|
+
@_t_name=ENV["TAXO_NAME"]
|
|
87
|
+
@_t_version=ENV["TAXO_VER"]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def teardown
|
|
91
|
+
ENV["TAXO_NAME"]=@_t_name
|
|
92
|
+
ENV["TAXO_VER"]=@_t_version
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def test_introduce_new_taxonomy
|
|
96
|
+
Xbrlware::Taxonomies.module_eval %{
|
|
97
|
+
module NZGAAP2008
|
|
98
|
+
def element_definition
|
|
99
|
+
"element_value"
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ENV["TAXO_NAME"]="NZ-GAAP"
|
|
105
|
+
ENV["TAXO_VER"]="2008"
|
|
106
|
+
|
|
107
|
+
tax_def=Xbrlware::Taxonomy.new(nil, nil)
|
|
108
|
+
def_value=tax_def.definition("element_definition")
|
|
109
|
+
assert_equal("element_value", def_value)
|
|
110
|
+
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def test_invalid_taxonomy
|
|
114
|
+
|
|
115
|
+
ENV["TAXO_NAME"]="IN-GAAP"
|
|
116
|
+
ENV["TAXO_VER"]="2008"
|
|
117
|
+
|
|
118
|
+
tax_def=Xbrlware::Taxonomy.new(nil, nil)
|
|
119
|
+
def_value=tax_def.definition("element_definition")
|
|
120
|
+
assert_nil(def_value)
|
|
121
|
+
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper.rb'
|
|
2
|
+
|
|
3
|
+
class TestXbrlUtil < Test::Unit::TestCase
|
|
4
|
+
def test_file_grep
|
|
5
|
+
files_map = Xbrlware::file_grep(File.dirname(__FILE__) + '/resources/util_test_xbrl_files/')
|
|
6
|
+
assert_equal("def.xml", bname(files_map["def"]))
|
|
7
|
+
assert_equal("instance.xml", bname(files_map["ins"]))
|
|
8
|
+
assert_equal("pre.xml", bname(files_map["pre"]))
|
|
9
|
+
assert_equal("lab.xml", bname(files_map["lab"]))
|
|
10
|
+
assert_equal("cal.xml", bname(files_map["cal"]))
|
|
11
|
+
assert_equal("taxonomy.xsd", bname(files_map["tax"]))
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
private
|
|
15
|
+
def bname(filename)
|
|
16
|
+
File.basename(filename) unless filename.nil?
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper.rb'
|
|
2
|
+
class TestXmlParser < Test::Unit::TestCase
|
|
3
|
+
def test_xmslparser_is_faster_than_xmlsimple
|
|
4
|
+
xml_content= %{
|
|
5
|
+
<?xml version="1.0" encoding="us-ascii"?>
|
|
6
|
+
<xbrl>
|
|
7
|
+
<SeasonalityOfBusinessTextBlock contextRef="NineMonthsEnded_05Sep2009">
|
|
8
|
+
<!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->
|
|
9
|
+
<!-- Begin Block Tagged Note 2 - bgllc:SeasonalityOfBusinessTextBlock-->
|
|
10
|
+
<div style="font-family: 'Times New Roman',Times,serif">
|
|
11
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><b>Note 2&#8212;Seasonality of Business</b>
|
|
12
|
+
</div>
|
|
13
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;The results for the third quarter are not necessarily indicative of the results that may be
|
|
14
|
+
expected for the full year because sales of our products are seasonal. The seasonality of our
|
|
15
|
+
operating results arises from higher sales in the second and third quarters versus the first and
|
|
16
|
+
fourth quarters of the year, combined with the impact of fixed costs, such as depreciation and
|
|
17
|
+
interest, which are not significantly impacted by business seasonality. From a cash flow
|
|
18
|
+
perspective, the majority of our cash flow from operations is generated in the third and fourth
|
|
19
|
+
quarters.
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</SeasonalityOfBusinessTextBlock>
|
|
23
|
+
<AccountingChangesAndErrorCorrectionsTextBlock contextRef="NineMonthsEnded_05Sep2009">
|
|
24
|
+
<!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->
|
|
25
|
+
<!-- Begin Block Tagged Note 3 - us-gaap:AccountingChangesAndErrorCorrectionsTextBlock-->
|
|
26
|
+
<div style="font-family: 'Times New Roman',Times,serif">
|
|
27
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><b>Note 3&#8212;New Accounting Standards</b>
|
|
28
|
+
</div>
|
|
29
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt"><i>SFAS No.&#160;141(R) as amended</i>
|
|
30
|
+
</div>
|
|
31
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In December&#160;2007, the Financial Accounting Standards Board (&#8220;FASB&#8221;) issued Statement of
|
|
32
|
+
Financial Accounting Standards (&#8220;SFAS&#8221;) No.&#160;141(revised 2007), &#8220;Business Combinations&#8221; (&#8220;SFAS
|
|
33
|
+
141(R)&#8221;), which addresses the accounting and disclosure for identifiable assets acquired,
|
|
34
|
+
liabilities assumed, and noncontrolling interests in a business combination. In April&#160;2009, the
|
|
35
|
+
FASB issued FASB Staff Position No.&#160;FAS 141(R)-1, &#8220;Accounting for Assets Acquired and Liabilities
|
|
36
|
+
Assumed in a Business Combination That Arise from Contingencies&#8221; (&#8220;FSP FAS 141(R)-1&#8221;), which
|
|
37
|
+
amended certain provisions of SFAS 141(R) related to the recognition, measurement, and disclosure
|
|
38
|
+
of assets acquired and liabilities assumed in a business combination that arise from contingencies.
|
|
39
|
+
SFAS 141(R) and FSP FAS 141(R)-1 became effective in 2009, and did not have a material impact on
|
|
40
|
+
our Condensed Consolidated Financial Statements, but will continue to be evaluated on the outcome
|
|
41
|
+
of future matters.
|
|
42
|
+
</div>
|
|
43
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>SFAS No.&#160;160</i>
|
|
44
|
+
</div>
|
|
45
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In December&#160;2007, the FASB issued SFAS No.&#160;160, &#8220;Noncontrolling Interests in Consolidated
|
|
46
|
+
Financial Statements, an amendment of ARB No.&#160;51&#8221; (&#8220;SFAS 160&#8221;), which addresses the accounting and
|
|
47
|
+
reporting framework for noncontrolling interests by a parent company. SFAS 160 also addresses
|
|
48
|
+
disclosure requirements to distinguish between interests of the parent and interests of the
|
|
49
|
+
noncontrolling owners of a subsidiary. SFAS 160 became effective in the first quarter of 2009.
|
|
50
|
+
The provisions of SFAS 160 require that minority interest be renamed noncontrolling interests and
|
|
51
|
+
that a company present a consolidated net income measure that includes the amount attributable to
|
|
52
|
+
such noncontrolling interests for all periods presented. In addition, SFAS 160 requires reporting
|
|
53
|
+
noncontrolling interests as a component of equity in our Condensed Consolidated Balance Sheets and
|
|
54
|
+
below income tax expense in our Condensed Consolidated Statements of Operations. As required by
|
|
55
|
+
SFAS 160, we have retrospectively applied the presentation to our prior year balances in our
|
|
56
|
+
Condensed Consolidated Financial Statements.
|
|
57
|
+
</div>
|
|
58
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>SFAS No.&#160;161</i>
|
|
59
|
+
</div>
|
|
60
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In March&#160;2008, the FASB issued SFAS No.&#160;161, &#8220;Disclosures about Derivative Instruments and
|
|
61
|
+
Hedging Activities, an amendment of FASB Statement No.&#160;133&#8221; (&#8220;SFAS 161&#8221;), which requires enhanced
|
|
62
|
+
disclosures for derivative and hedging activities. SFAS 161 became effective in the first quarter
|
|
63
|
+
of 2009. See Note 8 for required disclosure.
|
|
64
|
+
</div>
|
|
65
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>FSP FAS 132(R)-1</i>
|
|
66
|
+
</div>
|
|
67
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In December&#160;2008, the FASB issued FASB Staff Position No.&#160;SFAS 132(revised 2003)-1,
|
|
68
|
+
&#8220;Employers&#8217; Disclosures about Postretirement Benefit Plan Assets&#8221; (&#8220;FSP FAS 132(R)-1&#8221;), which
|
|
69
|
+
requires employers to disclose information about fair value measurements of plan assets that are
|
|
70
|
+
similar to the disclosures about fair value measurements required by SFAS No.&#160;157, &#8220;Fair Value
|
|
71
|
+
Measurements&#8221; (&#8220;SFAS 157&#8221;). FSP FAS 132(R)-1 will become effective for our annual financial
|
|
72
|
+
statements for 2009. We are currently evaluating the impact of this standard on our Consolidated
|
|
73
|
+
Financial Statements.
|
|
74
|
+
</div>
|
|
75
|
+
<!-- Folio -->
|
|
76
|
+
<!-- /Folio -->
|
|
77
|
+
</div>
|
|
78
|
+
<!-- PAGEBREAK -->
|
|
79
|
+
<div style="font-family: 'Times New Roman',Times,serif">
|
|
80
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>FSP FAS 107-1 and APB 28-1</i>
|
|
81
|
+
</div>
|
|
82
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In April&#160;2009, the FASB issued FASB Staff Position No.&#160;SFAS 107-1 and APB No.&#160;28-1, &#8220;Interim
|
|
83
|
+
Disclosures about Fair Value of Financial Instruments&#8221; (&#8220;FSP FAS 107-1 and APB 28-1&#8221;), which
|
|
84
|
+
requires quarterly disclosure of information about the fair value of financial instruments within
|
|
85
|
+
the scope of FASB Statement No.&#160;107, &#8220;Disclosures about Fair Value of Financial Instruments.&#8221; FSP
|
|
86
|
+
FAS 107-1 and APB 28-1 has an effective date requiring adoption by the third quarter of 2009 with
|
|
87
|
+
early adoption permitted. We adopted the provisions of FSP FAS 107-1 and APB 28-1 in the first
|
|
88
|
+
quarter of 2009. See Note 7 for required disclosures.
|
|
89
|
+
</div>
|
|
90
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>SFAS No.&#160;165</i>
|
|
91
|
+
</div>
|
|
92
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In May&#160;2009, the FASB issued SFAS No.&#160;165, &#8220;Subsequent Events&#8221; (&#8220;SFAS 165&#8221;), which sets forth
|
|
93
|
+
general standards of accounting for and disclosure of events that occur after the balance sheet
|
|
94
|
+
date but before financial statements are issued or are available to be issued. SFAS 165 became
|
|
95
|
+
effective in the third quarter of 2009 and did not have a material impact on our Consolidated
|
|
96
|
+
Financial Statements.
|
|
97
|
+
</div>
|
|
98
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>SFAS No.&#160;167</i>
|
|
99
|
+
</div>
|
|
100
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In June&#160;2009, the FASB issued SFAS No.&#160;167, &#8220;Amendments to FASB Interpretation No.&#160;46(R)&#8221;
|
|
101
|
+
(&#8220;SFAS 167&#8221;), which amends FASB Interpretation No.&#160;46(revised December&#160;2003) to address the
|
|
102
|
+
elimination of the concept of a qualifying special purpose entity. SFAS 167 also replaces the
|
|
103
|
+
quantitative-based risks and rewards calculation for determining which enterprise has a controlling
|
|
104
|
+
financial interest in a variable interest entity with an approach focused on identifying which
|
|
105
|
+
enterprise has the power to direct the activities of a variable interest entity and the obligation
|
|
106
|
+
to absorb losses of the entity or the right to receive benefits from the entity. Additionally,
|
|
107
|
+
SFAS 167 provides more timely and useful information about an enterprise&#8217;s involvement with a
|
|
108
|
+
variable interest entity. SFAS 167 will become effective in the first quarter of 2010. We are
|
|
109
|
+
currently evaluating the impact of this standard on our Consolidated Financial Statements.
|
|
110
|
+
</div>
|
|
111
|
+
<div align="left" style="font-size: 10pt; margin-top: 12pt"><i>SFAS No.&#160;168</i>
|
|
112
|
+
</div>
|
|
113
|
+
<div align="left" style="font-size: 10pt; margin-top: 6pt">&#160;&#160;&#160;&#160;&#160;In June&#160;2009, the FASB issued SFAS No.&#160;168, &#8220;The <i>FASB Accounting Standards
|
|
114
|
+
Codification</i><sup style="font-size: 85%; vertical-align: text-top">TM</sup> and the Hierarchy of Generally Accepted Accounting Principles, a
|
|
115
|
+
replacement of FASB Statement No.&#160;162&#8221; (&#8220;SFAS 168&#8221;), which establishes the FASB Accounting
|
|
116
|
+
Standards Codification as the source of authoritative accounting principles recognized by the FASB
|
|
117
|
+
to be applied in the preparation of financial statements in conformity with generally accepted
|
|
118
|
+
accounting principles. SFAS 168 explicitly recognizes rules and interpretive releases of the
|
|
119
|
+
Securities and Exchange Commission (&#8220;SEC&#8221;) under federal securities laws as authoritative GAAP for
|
|
120
|
+
SEC registrants. SFAS 168 will become effective in the fourth quarter of 2009 and will require the
|
|
121
|
+
Company to update all existing GAAP references to the new codification references for all future
|
|
122
|
+
filings.
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</AccountingChangesAndErrorCorrectionsTextBlock>
|
|
126
|
+
</xbrl>
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
m_xml_simple=Benchmark.measure do
|
|
130
|
+
XmlSimple.xml_in(xml_content, {'ForceContent' => true})
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
m_xml_parser=Benchmark.measure do
|
|
134
|
+
Xbrlware::XmlParser.xml_in(xml_content, {'ForceContent' => true})
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
assert(m_xml_parser.real < m_xml_simple.real)
|
|
138
|
+
|
|
139
|
+
$LOG.debug "XmlParser is " + (m_xml_simple.real/m_xml_parser.real).to_s + " faster as entity replacement is ignored"
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
java_import javax.xml.XMLConstants
|
|
2
|
+
java_import javax.xml.parsers.DocumentBuilder
|
|
3
|
+
java_import javax.xml.parsers.DocumentBuilderFactory
|
|
4
|
+
java_import javax.xml.transform.Source
|
|
5
|
+
java_import javax.xml.transform.dom.DOMSource
|
|
6
|
+
java_import javax.xml.transform.stream.StreamSource
|
|
7
|
+
java_import javax.xml.validation.Schema
|
|
8
|
+
java_import javax.xml.validation.SchemaFactory
|
|
9
|
+
java_import javax.xml.validation.Validator
|
|
10
|
+
|
|
11
|
+
java_import org.w3c.dom.Document
|
|
12
|
+
java_import org.xml.sax.SAXException
|
|
13
|
+
|
|
14
|
+
module XbrlTest
|
|
15
|
+
class SchemaValidator
|
|
16
|
+
|
|
17
|
+
def self.validate (xml_file, xsd_file)
|
|
18
|
+
|
|
19
|
+
unless ENV["SCHEMA_VALIDATION"].nil?
|
|
20
|
+
return if ENV["SCHEMA_VALIDATION"]=="False" || ENV["SCHEMA_VALIDATION"]=="false"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
docBuilder = DocumentBuilderFactory.newInstance()
|
|
24
|
+
docBuilder.setNamespaceAware(true)
|
|
25
|
+
docBuilder.setXIncludeAware(true)
|
|
26
|
+
|
|
27
|
+
parser = docBuilder.newDocumentBuilder()
|
|
28
|
+
document = parser.parse(java.io.File.new(xml_file))
|
|
29
|
+
factory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema")
|
|
30
|
+
|
|
31
|
+
schemaFile = StreamSource.new(java.io.File.new(xsd_file))
|
|
32
|
+
schema = factory.newSchema(schemaFile)
|
|
33
|
+
|
|
34
|
+
validator = schema.newValidator()
|
|
35
|
+
validator.validate(DOMSource.new(document))
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
def first(name, &block)
|
|
2
|
+
block = lambda{ puts "lambda"} if block.nil?
|
|
3
|
+
second &block
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def second(&block)
|
|
7
|
+
yield
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
first("blk") { puts "Hello"}
|
|
11
|
+
first("blk")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def dummy(count, snipet=StringIO.new, &block)
|
|
15
|
+
return snipet.string if count > 5
|
|
16
|
+
yield snipet
|
|
17
|
+
count += 1
|
|
18
|
+
dummy(count, snipet, &block)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
dummy(0, StringIO.new) {|snipet| snipet << "x"}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def block_taking_block(&block)
|
|
25
|
+
yield 10
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
block_taking_block do |j|
|
|
29
|
+
x = lambda do |y|
|
|
30
|
+
puts y
|
|
31
|
+
end
|
|
32
|
+
x.call j
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
require 'active_support'
|
|
36
|
+
Hash.from_xml('')
|
data/test/test_helper.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
require 'test/unit'
|
|
2
|
+
|
|
3
|
+
require 'xbrlware'
|
|
4
|
+
require 'edgar'
|
|
5
|
+
|
|
6
|
+
require 'tmpdir'
|
|
7
|
+
|
|
8
|
+
begin
|
|
9
|
+
require 'java'
|
|
10
|
+
require File.dirname(__FILE__) + '/schema_validator_jruby'
|
|
11
|
+
rescue Exception
|
|
12
|
+
ENV["SCHEMA_VALIDATION"]="False"
|
|
13
|
+
require File.dirname(__FILE__) + '/schema_validator_ruby'
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
$LOG.level = Logger::INFO
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
data/xbrlware.iml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="GemRequirementsHolder" version="2">
|
|
4
|
+
<requirement>
|
|
5
|
+
<requirement>
|
|
6
|
+
<dependency name="rake" version="0" bound="GREATER_OR_EQUAL" />
|
|
7
|
+
</requirement>
|
|
8
|
+
<source from="pkg/xbrlware-ce-1.0.2/Rakefile.rb" />
|
|
9
|
+
<source from="Rakefile.rb" />
|
|
10
|
+
</requirement>
|
|
11
|
+
<requirement>
|
|
12
|
+
<requirement>
|
|
13
|
+
<dependency name="xml-simple" version="1.0.12" bound="EQUAL" />
|
|
14
|
+
</requirement>
|
|
15
|
+
<source from="lib/xbrlware.rb" />
|
|
16
|
+
<source from="pkg/xbrlware-ce-1.0.2/lib/xbrlware.rb" />
|
|
17
|
+
</requirement>
|
|
18
|
+
</component>
|
|
19
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
20
|
+
<exclude-output />
|
|
21
|
+
<content url="file://$MODULE_DIR$">
|
|
22
|
+
<sourceFolder url="file://$MODULE_DIR$/example" isTestSource="false" />
|
|
23
|
+
<sourceFolder url="file://$MODULE_DIR$/lib" isTestSource="false" />
|
|
24
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
25
|
+
</content>
|
|
26
|
+
<orderEntry type="jdk" jdkName="Ruby SDK 1.8.7" jdkType="RUBY_SDK" />
|
|
27
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
28
|
+
</component>
|
|
29
|
+
</module>
|
|
30
|
+
|
metadata
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: xbrlware-ce
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- bitstat technologies
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2010-01-07 00:00:00 +05:30
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: xml-simple
|
|
17
|
+
type: :runtime
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - "="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 1.0.12
|
|
24
|
+
version:
|
|
25
|
+
description: |-
|
|
26
|
+
A fast, lightweight framework to parse, extract information from XBRL documents.
|
|
27
|
+
xbrlware understands structure and relationship among elements of XBRL documents and
|
|
28
|
+
defines a set of APIs for accessing financial & business facts, meta & other related information
|
|
29
|
+
defined in XBRL documents.
|
|
30
|
+
email: xbrlware@bitstat.com
|
|
31
|
+
executables: []
|
|
32
|
+
|
|
33
|
+
extensions: []
|
|
34
|
+
|
|
35
|
+
extra_rdoc_files:
|
|
36
|
+
- Readme.txt
|
|
37
|
+
files:
|
|
38
|
+
- Readme.txt
|
|
39
|
+
- xbrlware.iml
|
|
40
|
+
- setup.rb
|
|
41
|
+
- Rakefile.rb
|
|
42
|
+
- Copying.txt
|
|
43
|
+
- License.txt
|
|
44
|
+
- lib/xbrlware.rb
|
|
45
|
+
- lib/edgar/util.rb
|
|
46
|
+
- lib/edgar/edgar_data_downloader.rb
|
|
47
|
+
- lib/xbrlware/float_patch.rb
|
|
48
|
+
- lib/xbrlware/linkbase/definition_linkbase.rb
|
|
49
|
+
- lib/xbrlware/linkbase/presentation_linkbase.rb
|
|
50
|
+
- lib/xbrlware/linkbase/linkbase.rb
|
|
51
|
+
- lib/xbrlware/linkbase/calculation_linkbase.rb
|
|
52
|
+
- lib/xbrlware/linkbase/label_linkbase.rb
|
|
53
|
+
- lib/xbrlware/hash_util.rb
|
|
54
|
+
- lib/xbrlware/constants.rb
|
|
55
|
+
- lib/xbrlware/instance.rb
|
|
56
|
+
- lib/xbrlware/date_util.rb
|
|
57
|
+
- lib/xbrlware/xml_parser.rb
|
|
58
|
+
- lib/xbrlware/util.rb
|
|
59
|
+
- lib/xbrlware/meta_util.rb
|
|
60
|
+
- lib/xbrlware/context.rb
|
|
61
|
+
- lib/xbrlware/unit.rb
|
|
62
|
+
- lib/xbrlware/item.rb
|
|
63
|
+
- lib/xbrlware/taxonomy.rb
|
|
64
|
+
- lib/xbrlware/taxonomies/us_gaap_taxonomy_20090131.rb
|
|
65
|
+
- lib/edgar.rb
|
|
66
|
+
- doc/fr_class_index.html
|
|
67
|
+
- doc/rdoc-style.css
|
|
68
|
+
- doc/index.html
|
|
69
|
+
- doc/created.rid
|
|
70
|
+
- doc/fr_file_index.html
|
|
71
|
+
- doc/fr_method_index.html
|
|
72
|
+
- doc/classes/Edgar/HTMLFeedDownloader.html
|
|
73
|
+
- doc/classes/Edgar/RSSFeedDownloader.html
|
|
74
|
+
- doc/classes/Xbrlware.html
|
|
75
|
+
- doc/classes/Xbrlware/LBConstants.html
|
|
76
|
+
- doc/classes/Xbrlware/Entity.html
|
|
77
|
+
- doc/classes/Xbrlware/Taxonomy.html
|
|
78
|
+
- doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition/DefinitionArc.html
|
|
79
|
+
- doc/classes/Xbrlware/Linkbase/DefinitionLinkbase/Definition.html
|
|
80
|
+
- doc/classes/Xbrlware/Linkbase/Linkbase/Link.html
|
|
81
|
+
- doc/classes/Xbrlware/Linkbase/Linkbase/Link/Arc.html
|
|
82
|
+
- doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation/PresentationArc.html
|
|
83
|
+
- doc/classes/Xbrlware/Linkbase/PresentationLinkbase/Presentation.html
|
|
84
|
+
- doc/classes/Xbrlware/Linkbase/LabelLinkbase.html
|
|
85
|
+
- doc/classes/Xbrlware/Linkbase/LabelLinkbase/Label.html
|
|
86
|
+
- doc/classes/Xbrlware/Linkbase/PresentationLinkbase.html
|
|
87
|
+
- doc/classes/Xbrlware/Linkbase/CalculationLinkbase.html
|
|
88
|
+
- doc/classes/Xbrlware/Linkbase/Linkbase.html
|
|
89
|
+
- doc/classes/Xbrlware/Linkbase/DefinitionLinkbase.html
|
|
90
|
+
- doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation.html
|
|
91
|
+
- doc/classes/Xbrlware/Linkbase/CalculationLinkbase/Calculation/CalculationArc.html
|
|
92
|
+
- doc/classes/Xbrlware/Unit.html
|
|
93
|
+
- doc/classes/Xbrlware/Item.html
|
|
94
|
+
- doc/classes/Xbrlware/Identifier.html
|
|
95
|
+
- doc/classes/Xbrlware/Instance.html
|
|
96
|
+
- doc/classes/Xbrlware/Unit/Divide.html
|
|
97
|
+
- doc/classes/Xbrlware/TaxonomyDefintion.html
|
|
98
|
+
- doc/classes/Xbrlware/Context.html
|
|
99
|
+
- doc/classes/Xbrlware/Linkbase.html
|
|
100
|
+
- doc/classes/Edgar.html
|
|
101
|
+
- doc/files/lib/xbrlware_rb.html
|
|
102
|
+
- doc/files/lib/edgar/util_rb.html
|
|
103
|
+
- doc/files/lib/edgar/edgar_data_downloader_rb.html
|
|
104
|
+
- doc/files/lib/xbrlware/linkbase/definition_linkbase_rb.html
|
|
105
|
+
- doc/files/lib/xbrlware/linkbase/presentation_linkbase_rb.html
|
|
106
|
+
- doc/files/lib/xbrlware/linkbase/label_linkbase_rb.html
|
|
107
|
+
- doc/files/lib/xbrlware/linkbase/linkbase_rb.html
|
|
108
|
+
- doc/files/lib/xbrlware/linkbase/calculation_linkbase_rb.html
|
|
109
|
+
- doc/files/lib/xbrlware/util_rb.html
|
|
110
|
+
- doc/files/lib/xbrlware/meta_util_rb.html
|
|
111
|
+
- doc/files/lib/xbrlware/hash_util_rb.html
|
|
112
|
+
- doc/files/lib/xbrlware/float_patch_rb.html
|
|
113
|
+
- doc/files/lib/xbrlware/taxonomy_rb.html
|
|
114
|
+
- doc/files/lib/xbrlware/xml_parser_rb.html
|
|
115
|
+
- doc/files/lib/xbrlware/constants_rb.html
|
|
116
|
+
- doc/files/lib/xbrlware/instance_rb.html
|
|
117
|
+
- doc/files/lib/xbrlware/date_util_rb.html
|
|
118
|
+
- doc/files/lib/xbrlware/context_rb.html
|
|
119
|
+
- doc/files/lib/xbrlware/unit_rb.html
|
|
120
|
+
- doc/files/lib/xbrlware/item_rb.html
|
|
121
|
+
- doc/files/lib/edgar_rb.html
|
|
122
|
+
- doc/files/Readme_txt.html
|
|
123
|
+
- test/scratchpad/block.rb
|
|
124
|
+
- test/schema_validator_ruby.rb
|
|
125
|
+
- test/lib/edgar/edgar_data_downloader_test.rb
|
|
126
|
+
- test/lib/edgar/resources/usgaap.rss.xml
|
|
127
|
+
- test/lib/edgar/resources/0000930413-09-005485-index.htm
|
|
128
|
+
- test/lib/xbrlware/dimension/resources/context_explicit_dimension.xml
|
|
129
|
+
- test/lib/xbrlware/dimension/context_explicit_dimension_test.rb
|
|
130
|
+
- test/lib/xbrlware/float_patch_test.rb
|
|
131
|
+
- test/lib/xbrlware/linkbase/report.html
|
|
132
|
+
- test/lib/xbrlware/linkbase/linkbase_test.rb
|
|
133
|
+
- test/lib/xbrlware/linkbase/label_linkbase_test.rb
|
|
134
|
+
- test/lib/xbrlware/linkbase/definition_linkbase_test.rb
|
|
135
|
+
- test/lib/xbrlware/linkbase/presentation_linkbase_test.rb
|
|
136
|
+
- test/lib/xbrlware/linkbase/sample_html_report.html
|
|
137
|
+
- test/lib/xbrlware/linkbase/resources/def_with_multiple_dimension.xml
|
|
138
|
+
- test/lib/xbrlware/linkbase/resources/report_10_q.htm
|
|
139
|
+
- test/lib/xbrlware/linkbase/resources/pre.xml
|
|
140
|
+
- test/lib/xbrlware/linkbase/resources/instance.xml
|
|
141
|
+
- test/lib/xbrlware/linkbase/resources/cal.xml
|
|
142
|
+
- test/lib/xbrlware/linkbase/resources/lab.xml
|
|
143
|
+
- test/lib/xbrlware/linkbase/resources/taxonomy.xsd
|
|
144
|
+
- test/lib/xbrlware/linkbase/resources/def.xml
|
|
145
|
+
- test/lib/xbrlware/linkbase/calculation_linkbase_test.rb
|
|
146
|
+
- test/lib/xbrlware/linkbase/linkbase_test_util.rb
|
|
147
|
+
- test/lib/xbrlware/47_context_test.rb
|
|
148
|
+
- test/lib/xbrlware/411_footnotes_test.rb
|
|
149
|
+
- test/lib/xbrlware/date_util_test.rb
|
|
150
|
+
- test/lib/xbrlware/42_schemaref_test.rb
|
|
151
|
+
- test/lib/xbrlware/46_item_test.rb
|
|
152
|
+
- test/lib/xbrlware/instance_test.rb
|
|
153
|
+
- test/lib/xbrlware/util_test.rb
|
|
154
|
+
- test/lib/xbrlware/meta_util_test.rb
|
|
155
|
+
- test/lib/xbrlware/hash_util_test.rb
|
|
156
|
+
- test/lib/xbrlware/resources/42/42_schema_ref_with_base.xml
|
|
157
|
+
- test/lib/xbrlware/resources/42/42_schema_ref_without_base.xml
|
|
158
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/pre.xml
|
|
159
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/instance.xml
|
|
160
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/cal.xml
|
|
161
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/lab.xml
|
|
162
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/taxonomy.xsd
|
|
163
|
+
- test/lib/xbrlware/resources/util_test_xbrl_files/def.xml
|
|
164
|
+
- test/lib/xbrlware/resources/49_tuple.xsd
|
|
165
|
+
- test/lib/xbrlware/resources/instance.xml
|
|
166
|
+
- test/lib/xbrlware/resources/48/482_unit_measure.xml
|
|
167
|
+
- test/lib/xbrlware/resources/48/48_multiple_units.xml
|
|
168
|
+
- test/lib/xbrlware/resources/48/483_unit_divide.xml
|
|
169
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xbrldt-2005.xsd
|
|
170
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xlink-2003-12-31.xsd
|
|
171
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xbrl-linkbase-2003-12-31.xsd
|
|
172
|
+
- test/lib/xbrlware/resources/xbrl_xsd/us-roles-2009-01-31.xsd
|
|
173
|
+
- test/lib/xbrlware/resources/xbrl_xsd/negated-2008-03-31.xsd
|
|
174
|
+
- test/lib/xbrlware/resources/xbrl_xsd/us-gaap-2009-01-31.xsd
|
|
175
|
+
- test/lib/xbrlware/resources/xbrl_xsd/us-types-2009-01-31.xsd
|
|
176
|
+
- test/lib/xbrlware/resources/xbrl_xsd/ref-2006-02-27.xsd
|
|
177
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xbrl-instance-2003-12-31.xsd
|
|
178
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xbrldi-2006.xsd
|
|
179
|
+
- test/lib/xbrlware/resources/xbrl_xsd/dei-2009-01-31.xsd
|
|
180
|
+
- test/lib/xbrlware/resources/xbrl_xsd/dei-std-2009-01-31.xsd
|
|
181
|
+
- test/lib/xbrlware/resources/xbrl_xsd/xl-2003-12-31.xsd
|
|
182
|
+
- test/lib/xbrlware/resources/us_gaap_schema_local.xsd
|
|
183
|
+
- test/lib/xbrlware/resources/411/411_footnotes.xml
|
|
184
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/2/taxonomy.xsd
|
|
185
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/pre.xml
|
|
186
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/cal.xml
|
|
187
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/lab.xml
|
|
188
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/2/linkbases/def.xml
|
|
189
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/1/pre.xml
|
|
190
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/1/cal.xml
|
|
191
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/1/lab.xml
|
|
192
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/1/taxonomy.xsd
|
|
193
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/1/def.xml
|
|
194
|
+
- test/lib/xbrlware/resources/taxonomy_test_files/3/taxonomy.xsd
|
|
195
|
+
- test/lib/xbrlware/resources/46/46_item_value.xml
|
|
196
|
+
- test/lib/xbrlware/resources/47/4731_entity_identifier.xml
|
|
197
|
+
- test/lib/xbrlware/resources/47/4732_entity_segment_not_present.xml
|
|
198
|
+
- test/lib/xbrlware/resources/47/47_multiple_contexts.xml
|
|
199
|
+
- test/lib/xbrlware/resources/47/472_period_start_dt_and_end_dt.xml
|
|
200
|
+
- test/lib/xbrlware/resources/47/472_period_instant.xml
|
|
201
|
+
- test/lib/xbrlware/resources/47/4732_entity_segment_present.xml
|
|
202
|
+
- test/lib/xbrlware/resources/47/474_scenario_not_present.xml
|
|
203
|
+
- test/lib/xbrlware/resources/47/472_period_forever.xml
|
|
204
|
+
- test/lib/xbrlware/resources/47/474_scenario_present.xml
|
|
205
|
+
- test/lib/xbrlware/resources/us_gaap_schema.xsd
|
|
206
|
+
- test/lib/xbrlware/resources/49/49_tuple.xml
|
|
207
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/pre.xml
|
|
208
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/instance.xml
|
|
209
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/cal.xml
|
|
210
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/lab.xml
|
|
211
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/taxonomy.xsd
|
|
212
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/def.xml
|
|
213
|
+
- test/lib/xbrlware/resources/report_test_xbrl_files/report/report_index.html
|
|
214
|
+
- test/lib/xbrlware/49_tuple_test.rb
|
|
215
|
+
- test/lib/xbrlware/taxonomy_test.rb
|
|
216
|
+
- test/lib/xbrlware/xml_parser_test.rb
|
|
217
|
+
- test/lib/xbrlware/48_unit_test.rb
|
|
218
|
+
- test/test_helper.rb
|
|
219
|
+
- test/schema_validator_jruby.rb
|
|
220
|
+
- example/quick_start/foo.rb
|
|
221
|
+
- example/quick_start/foo.xml
|
|
222
|
+
- example/quick_start/print_item.rb
|
|
223
|
+
- example/case_study/c_sell_strategy.rb
|
|
224
|
+
- example/case_study/buy_strategy.rb
|
|
225
|
+
- example/case_study/c-20091230.xml
|
|
226
|
+
- example/benchmark/instance_parser_benchmark.rb
|
|
227
|
+
- example/lang_integration/thrift/rating-server.rb
|
|
228
|
+
- example/lang_integration/thrift/rating.thrift
|
|
229
|
+
- example/lang_integration/thrift/rating-client.py
|
|
230
|
+
- example/lang_integration/thrift/rating-impl.rb
|
|
231
|
+
has_rdoc: true
|
|
232
|
+
homepage: http://www.bitstat.com/xbrlware/
|
|
233
|
+
licenses: []
|
|
234
|
+
|
|
235
|
+
post_install_message:
|
|
236
|
+
rdoc_options:
|
|
237
|
+
- --main
|
|
238
|
+
- Readme.txt
|
|
239
|
+
require_paths:
|
|
240
|
+
- lib
|
|
241
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
242
|
+
requirements:
|
|
243
|
+
- - ">="
|
|
244
|
+
- !ruby/object:Gem::Version
|
|
245
|
+
version: "0"
|
|
246
|
+
version:
|
|
247
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
|
+
requirements:
|
|
249
|
+
- - ">="
|
|
250
|
+
- !ruby/object:Gem::Version
|
|
251
|
+
version: "0"
|
|
252
|
+
version:
|
|
253
|
+
requirements:
|
|
254
|
+
- xml-simple v1.0.12
|
|
255
|
+
rubyforge_project: xbrlware
|
|
256
|
+
rubygems_version: 1.3.5
|
|
257
|
+
signing_key:
|
|
258
|
+
specification_version: 3
|
|
259
|
+
summary: A fast, lightweight framework to parse, extract information from XBRL documents.
|
|
260
|
+
test_files: []
|
|
261
|
+
|